Class DescribeStatement.Element
- java.lang.Object
-
- org.apache.cassandra.cql3.CQLStatement.Raw
-
- org.apache.cassandra.cql3.statements.DescribeStatement<SchemaElement>
-
- org.apache.cassandra.cql3.statements.DescribeStatement.Element
-
- All Implemented Interfaces:
CQLStatement
- Enclosing class:
- DescribeStatement<T>
public static class DescribeStatement.Element extends DescribeStatement<SchemaElement>
DescribeStatement
implementation used for describe queries for a single schema element.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.cassandra.cql3.statements.DescribeStatement
DescribeStatement.Element, DescribeStatement.Listing
-
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 Constructor Description Element(java.lang.String keyspace, java.lang.String name, java.util.function.BiFunction<KeyspaceMetadata,java.lang.String,java.util.stream.Stream<? extends SchemaElement>> elementsProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.stream.Stream<? extends SchemaElement>
describe(ClientState state, Keyspaces keyspaces)
Returns the schema elements that must be part of the output.protected java.util.List<ColumnSpecification>
metadata(ClientState state)
Returns the columns of theResultMetadata
protected java.util.List<java.nio.ByteBuffer>
toRow(SchemaElement element, boolean withInternals)
-
Methods inherited from class org.apache.cassandra.cql3.statements.DescribeStatement
aggregate, aggregates, authorize, cluster, execute, executeLocally, function, functions, generic, getAuditLogContext, getBindVariables, index, keyspace, keyspaces, prepare, schema, table, tables, type, types, validate, view, withInternalDetails
-
Methods inherited from class org.apache.cassandra.cql3.CQLStatement.Raw
setBindVariables
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.CQLStatement
getFunctions, getPartitionKeyBindVariableIndexes, hasConditions
-
-
-
-
Constructor Detail
-
Element
public Element(java.lang.String keyspace, java.lang.String name, java.util.function.BiFunction<KeyspaceMetadata,java.lang.String,java.util.stream.Stream<? extends SchemaElement>> elementsProvider)
-
-
Method Detail
-
describe
protected java.util.stream.Stream<? extends SchemaElement> describe(ClientState state, Keyspaces keyspaces)
Description copied from class:DescribeStatement
Returns the schema elements that must be part of the output.- Specified by:
describe
in classDescribeStatement<SchemaElement>
-
metadata
protected java.util.List<ColumnSpecification> metadata(ClientState state)
Description copied from class:DescribeStatement
Returns the columns of theResultMetadata
- Specified by:
metadata
in classDescribeStatement<SchemaElement>
-
toRow
protected java.util.List<java.nio.ByteBuffer> toRow(SchemaElement element, boolean withInternals)
- Specified by:
toRow
in classDescribeStatement<SchemaElement>
-
-