Class DescribeStatement<T>
java.lang.Object
org.apache.cassandra.cql3.CQLStatement.Raw
org.apache.cassandra.cql3.statements.DescribeStatement<T>
- All Implemented Interfaces:
CQLStatement
- Direct Known Subclasses:
DescribeStatement.Element,DescribeStatement.Listing
The differents
DESCRIBE statements parsed from a CQL statement.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDescribeStatementimplementation used for describe queries for a single schema element.static final classDescribeStatementimplementation used for describe queries that only list elements names.Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.CQLStatement
CQLStatement.Raw, CQLStatement.SingleKeyspaceCqlStatement -
Field Summary
Fields inherited from class org.apache.cassandra.cql3.CQLStatement.Raw
bindVariables -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DescribeStatement<SchemaElement>Creates aDescribeStatementforDESCRIBE FUNCTION.static DescribeStatement<SchemaElement>Creates aDescribeStatementforDESCRIBE AGGREGATES.final voidauthorize(ClientState state) Perform any access verification necessary for the statement.static DescribeStatement<List<Object>>cluster()Creates aDescribeStatementforDESCRIBE CLUSTER.describe(ClientState state, Keyspaces keyspaces) Returns the schema elements that must be part of the output.final ResultMessageexecute(QueryState state, QueryOptions options, Dispatcher.RequestTime requestTime) Execute the statement and return the resulting result or null if there is no result.executeLocally(QueryState state, QueryOptions options) Variant of execute used for internal query against the system tables, and thus only query the local node.static DescribeStatement<SchemaElement>Creates aDescribeStatementforDESCRIBE FUNCTION.static DescribeStatement<SchemaElement>Creates aDescribeStatementforDESCRIBE FUNCTIONS.static DescribeStatement<SchemaElement>Creates aDescribeStatementfor the genericDESCRIBE ....final AuditLogContextProvides the context needed for audit logging statements.final List<ColumnSpecification>Returns all bind variables for the statementstatic DescribeStatement<SchemaElement>Creates aDescribeStatementforDESCRIBE INDEX.static DescribeStatement<SchemaElement>Creates aDescribeStatementforDESCRIBE KEYSPACE.static DescribeStatement<SchemaElement>Creates aDescribeStatementforDESCRIBE KEYSPACES.protected abstract List<ColumnSpecification>metadata(ClientState state) Returns the columns of theResultMetadatafinal CQLStatementprepare(ClientState clientState) static DescribeStatement<SchemaElement>schema(boolean includeSystemKeyspaces) Creates aDescribeStatementforDESCRIBE [FULL] SCHEMA.static DescribeStatement<SchemaElement>Creates aDescribeStatementforDESCRIBE TABLE.static DescribeStatement<SchemaElement>tables()Creates aDescribeStatementforDESCRIBE TABLES.protected abstract List<ByteBuffer>static DescribeStatement<SchemaElement>Creates aDescribeStatementforDESCRIBE TYPE.static DescribeStatement<SchemaElement>types()Creates aDescribeStatementforDESCRIBE TYPES.final voidvalidate(ClientState state) Perform additional validation required by the statment.static DescribeStatement<SchemaElement>Creates aDescribeStatementforDESCRIBE MATERIALIZED VIEW.final voidMethods inherited from class org.apache.cassandra.cql3.CQLStatement.Raw
setBindVariablesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.cql3.CQLStatement
getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
-
Constructor Details
-
DescribeStatement
public DescribeStatement()
-
-
Method Details
-
withInternalDetails
public final void withInternalDetails() -
prepare
- Specified by:
preparein classCQLStatement.Raw- Throws:
RequestValidationException
-
getBindVariables
Description copied from interface:CQLStatementReturns all bind variables for the statement- Specified by:
getBindVariablesin interfaceCQLStatement
-
authorize
Description copied from interface:CQLStatementPerform any access verification necessary for the statement.- Specified by:
authorizein interfaceCQLStatement- Parameters:
state- the current client state
-
validate
Description copied from interface:CQLStatementPerform additional validation required by the statment. To be overriden by subclasses if needed.- Specified by:
validatein interfaceCQLStatement- Parameters:
state- the current client state
-
getAuditLogContext
Description copied from interface:CQLStatementProvides the context needed for audit logging statements.- Specified by:
getAuditLogContextin interfaceCQLStatement
-
execute
public final ResultMessage execute(QueryState state, QueryOptions options, Dispatcher.RequestTime requestTime) throws RequestValidationException, RequestExecutionException Description copied from interface:CQLStatementExecute the statement and return the resulting result or null if there is no result.- Specified by:
executein interfaceCQLStatement- Parameters:
state- the current query stateoptions- options for this query (consistency, variables, pageSize, ...)requestTime- request enqueue / and start times;- Throws:
RequestValidationExceptionRequestExecutionException
-
executeLocally
Description copied from interface:CQLStatementVariant of execute used for internal query against the system tables, and thus only query the local node.- Specified by:
executeLocallyin interfaceCQLStatement- Parameters:
state- the current query state
-
metadata
Returns the columns of theResultMetadata -
toRow
-
describe
Returns the schema elements that must be part of the output. -
tables
Creates aDescribeStatementforDESCRIBE TABLES. -
types
Creates aDescribeStatementforDESCRIBE TYPES. -
functions
Creates aDescribeStatementforDESCRIBE FUNCTIONS. -
aggregates
Creates aDescribeStatementforDESCRIBE AGGREGATES. -
keyspaces
Creates aDescribeStatementforDESCRIBE KEYSPACES. -
schema
Creates aDescribeStatementforDESCRIBE [FULL] SCHEMA. -
keyspace
public static DescribeStatement<SchemaElement> keyspace(String keyspace, boolean onlyKeyspaceDefinition) Creates aDescribeStatementforDESCRIBE KEYSPACE. -
table
Creates aDescribeStatementforDESCRIBE TABLE. -
index
Creates aDescribeStatementforDESCRIBE INDEX. -
view
Creates aDescribeStatementforDESCRIBE MATERIALIZED VIEW. -
type
Creates aDescribeStatementforDESCRIBE TYPE. -
function
Creates aDescribeStatementforDESCRIBE FUNCTION. -
aggregate
Creates aDescribeStatementforDESCRIBE FUNCTION. -
generic
Creates aDescribeStatementfor the genericDESCRIBE .... -
cluster
Creates aDescribeStatementforDESCRIBE CLUSTER.
-