Modifier and Type | Method and Description |
---|---|
default CqlIdentifier |
GraphStatement.getKeyspace()
Graph statements do not have a per-query keyspace, this method always returns
null . |
default CqlIdentifier |
GraphStatement.getRoutingKeyspace()
Graph statements can't be routed, this method always returns
null . |
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
DseEdgeMetadata.getFromLabel()
The label of the incoming vertex in graph.
|
CqlIdentifier |
DseEdgeMetadata.getFromTable()
The identifier of the table representing the incoming vertex.
|
CqlIdentifier |
DseVertexMetadata.getLabelName()
The label of the vertex in graph.
|
CqlIdentifier |
DseEdgeMetadata.getLabelName()
The label of the edge in graph.
|
CqlIdentifier |
DseEdgeMetadata.getToLabel()
The label of the outgoing vertex in graph.
|
CqlIdentifier |
DseEdgeMetadata.getToTable()
The identifier of the table representing the outgoing vertex.
|
Modifier and Type | Method and Description |
---|---|
List<CqlIdentifier> |
DseEdgeMetadata.getFromClusteringColumns()
The columns in this table that match the clustering columns of the incoming vertex table.
|
List<CqlIdentifier> |
DseEdgeMetadata.getFromPartitionKeyColumns()
The columns in this table that match the partition key of the incoming vertex table.
|
List<CqlIdentifier> |
DseFunctionMetadata.getMonotonicArgumentNames()
Returns a list of argument names that are monotonic.
|
List<CqlIdentifier> |
DseEdgeMetadata.getToClusteringColumns()
The columns in this table that match the clustering columns of the outgoing vertex table.
|
List<CqlIdentifier> |
DseEdgeMetadata.getToPartitionKeyColumns()
The columns in this table that match the partition key of the outgoing vertex table.
|
Modifier and Type | Method and Description |
---|---|
static AlterDseKeyspaceStart |
DseSchemaBuilder.alterDseKeyspace(CqlIdentifier keyspaceName)
Starts an ALTER KEYSPACE query.
|
static AlterDseTableStart |
DseSchemaBuilder.alterDseTable(CqlIdentifier tableName)
Starts an ALTER TABLE query with the given table name.
|
static AlterDseTableStart |
DseSchemaBuilder.alterDseTable(CqlIdentifier keyspace,
CqlIdentifier tableName)
Starts an ALTER TABLE query with the given table name for the given keyspace name.
|
static CreateAggregateStart |
DseSchemaBuilder.createAggregate(CqlIdentifier aggregateName)
Starts a CREATE AGGREGATE query with the given aggregate name.
|
static CreateAggregateStart |
DseSchemaBuilder.createAggregate(CqlIdentifier keyspace,
CqlIdentifier aggregateName)
Starts a CREATE AGGREGATE query with the given aggregate name for the given keyspace name.
|
static CreateDseAggregateStart |
DseSchemaBuilder.createDseAggregate(CqlIdentifier aggregateId)
Starts a CREATE AGGREGATE query with the given aggregate name.
|
static CreateDseAggregateStart |
DseSchemaBuilder.createDseAggregate(CqlIdentifier keyspaceId,
CqlIdentifier aggregateId)
Starts a CREATE AGGREGATE query with the given aggregate name for the given keyspace name.
|
static CreateDseFunctionStart |
DseSchemaBuilder.createDseFunction(CqlIdentifier functionId)
Starts a CREATE FUNCTION query with the given function name.
|
static CreateDseFunctionStart |
DseSchemaBuilder.createDseFunction(CqlIdentifier keyspaceId,
CqlIdentifier functionId)
Starts a CREATE FUNCTION query with the given function name for the given keyspace name.
|
static CreateDseKeyspaceStart |
DseSchemaBuilder.createDseKeyspace(CqlIdentifier keyspaceName)
Starts a CREATE KEYSPACE query.
|
static CreateDseTableStart |
DseSchemaBuilder.createDseTable(CqlIdentifier tableName)
Starts a CREATE TABLE query with the given table name.
|
static CreateDseTableStart |
DseSchemaBuilder.createDseTable(CqlIdentifier keyspace,
CqlIdentifier tableName)
Starts a CREATE TABLE query with the given table name for the given keyspace name.
|
static CreateFunctionStart |
DseSchemaBuilder.createFunction(CqlIdentifier functionName)
Starts a CREATE FUNCTION query with the given function name.
|
static CreateFunctionStart |
DseSchemaBuilder.createFunction(CqlIdentifier keyspace,
CqlIdentifier functionName)
Starts a CREATE FUNCTION query with the given function name for the given keyspace name.
|
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
DseGraphEdgeSide.getTableId() |
Modifier and Type | Method and Description |
---|---|
List<CqlIdentifier> |
DseGraphEdgeSide.getClusteringColumns() |
List<CqlIdentifier> |
DseGraphEdgeSide.getPartitionKeyColumns() |
Modifier and Type | Method and Description |
---|---|
AlterDseTableAddColumnEnd |
AlterDseTableAddColumn.addColumn(CqlIdentifier columnName,
DataType dataType)
Adds a column definition in the ALTER TABLE statement.
|
AlterDseTableAddColumnEnd |
AlterDseTableAddColumn.addStaticColumn(CqlIdentifier columnName,
DataType dataType)
Adds a static column definition in the ALTER TABLE statement.
|
BuildableQuery |
AlterDseTableStart.alterColumn(CqlIdentifier columnName,
DataType dataType)
Completes ALTER TABLE specifying the the type of a column should be changed.
|
default AlterDseTableDropColumnEnd |
AlterDseTableDropColumn.dropColumn(CqlIdentifier columnName)
Adds a column to drop to ALTER TABLE specification.
|
AlterDseTableDropColumnEnd |
AlterDseTableDropColumn.dropColumns(CqlIdentifier... columnNames)
Adds column(s) to drop to ALTER TABLE specification.
|
CreateDseFunctionWithType |
CreateDseFunctionWithType.monotonicOn(CqlIdentifier monotonicColumn)
Adds "MONOTONIC ON" to create function specification.
|
AlterDseTableRenameColumnEnd |
AlterDseTableRenameColumn.renameColumn(CqlIdentifier from,
CqlIdentifier to)
Adds a column rename to ALTER TABLE specification.
|
static DseGraphEdgeSide |
DseGraphEdgeSide.table(CqlIdentifier tableId)
Starts the definition of a graph edge side by designating the from/to table.
|
DseGraphEdgeSide |
DseGraphEdgeSide.withClusteringColumn(CqlIdentifier columnId)
Adds a clustering column to the primary key definition of this edge side.
|
CreateDseTable |
CreateDseTable.withClusteringColumn(CqlIdentifier columnName,
DataType dataType)
Adds a clustering column definition in the CREATE TABLE statement.
|
SelfT |
DseRelationStructure.withClusteringOrder(CqlIdentifier columnName,
ClusteringOrder order)
Adds the provided clustering order.
|
CreateDseTable |
CreateDseTable.withColumn(CqlIdentifier columnName,
DataType dataType)
Adds a column definition in the CREATE TABLE statement.
|
NextT |
DseTableGraphOptions.withEdgeLabel(CqlIdentifier edgeLabelId,
DseGraphEdgeSide from,
DseGraphEdgeSide to)
Adds an edge label to this table.
|
CreateDseAggregateEnd |
CreateDseAggregateEnd.withFinalFunc(CqlIdentifier finalFunc)
Adds FINALFUNC to the create aggregate query.
|
BuildableQuery |
AlterDseTableStart.withoutEdgeLabel(CqlIdentifier edgeLabelId)
Removes the named edge label from this table.
|
BuildableQuery |
AlterDseTableStart.withoutVertexLabel(CqlIdentifier vertexLabelId)
Removes the named vertex label from this table.
|
CreateDseFunctionStart |
CreateDseFunctionStart.withParameter(CqlIdentifier paramName,
DataType paramType)
Adds a parameter definition in the CREATE FUNCTION statement.
|
DseGraphEdgeSide |
DseGraphEdgeSide.withPartitionKey(CqlIdentifier columnId)
Adds a partition key column to the primary key definition of this edge side.
|
CreateDseTable |
OngoingDsePartitionKey.withPartitionKey(CqlIdentifier columnName,
DataType dataType)
Adds a partition key column definition.
|
CreateDseAggregateStateFunc |
CreateDseAggregateStart.withSFunc(CqlIdentifier sfuncName)
Adds SFUNC to the create aggregate specification.
|
CreateDseTable |
CreateDseTable.withStaticColumn(CqlIdentifier columnName,
DataType dataType)
Adds a static column definition in the CREATE TABLE statement.
|
NextT |
DseTableGraphOptions.withVertexLabel(CqlIdentifier vertexLabelId)
Adds a vertex label to this table.
|
Modifier and Type | Method and Description |
---|---|
SelfT |
DseRelationStructure.withClusteringOrderByIds(Map<CqlIdentifier,ClusteringOrder> orderings)
Adds the provided CLUSTERING ORDER.
|
Modifier and Type | Method and Description |
---|---|
static CqlIdentifier |
CqlIdentifier.fromCql(String cql)
Creates an identifier from its
CQL form . |
static CqlIdentifier |
CqlIdentifier.fromInternal(String internal)
Creates an identifier from its
internal form . |
Modifier and Type | Field and Description |
---|---|
protected CqlIdentifier |
StatementBuilder.routingKeyspace |
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
ColumnDefinition.getKeyspace() |
default CqlIdentifier |
BoundStatement.getKeyspace()
Always returns
null (bound statements can't have a per-request keyspace, they always
inherit the one of the statement that was initially prepared). |
CqlIdentifier |
ColumnDefinition.getName() |
CqlIdentifier |
PrepareRequest.getRoutingKeyspaceForBoundStatements()
The routing keyspace to use for the bound statements that will be created from the prepared
statement.
|
CqlIdentifier |
ColumnDefinition.getTable() |
Modifier and Type | Method and Description |
---|---|
Map<CqlIdentifier,Object> |
SimpleStatement.getNamedValues() |
Modifier and Type | Method and Description |
---|---|
SimpleStatementBuilder |
SimpleStatementBuilder.addNamedValue(CqlIdentifier name,
Object value) |
default List<Integer> |
ColumnDefinitions.allIndicesOf(CqlIdentifier id)
Returns the indices of all columns that use the given identifier.
|
List<Integer> |
BoundStatementBuilder.allIndicesOf(CqlIdentifier id) |
boolean |
ColumnDefinitions.contains(CqlIdentifier id)
Whether there is a definition using the given CQL identifier.
|
int |
ColumnDefinitions.firstIndexOf(CqlIdentifier id)
Returns the index of the first column that uses the given identifier.
|
int |
BoundStatementBuilder.firstIndexOf(CqlIdentifier id) |
default ColumnDefinition |
ColumnDefinitions.get(CqlIdentifier name)
Get a definition by name.
|
default boolean |
Bindable.isSet(CqlIdentifier id)
Whether the value for the first occurrence of
id has been set. |
SimpleStatementBuilder |
SimpleStatementBuilder.setKeyspace(CqlIdentifier keyspace) |
SimpleStatement |
SimpleStatement.setKeyspace(CqlIdentifier newKeyspace)
Sets the CQL keyspace to associate with the query.
|
BatchStatementBuilder |
BatchStatementBuilder.setKeyspace(CqlIdentifier keyspace)
Sets the CQL keyspace to execute this batch in.
|
BatchStatement |
BatchStatement.setKeyspace(CqlIdentifier newKeyspace)
Sets the CQL keyspace to associate with this batch.
|
SelfT |
StatementBuilder.setRoutingKeyspace(CqlIdentifier routingKeyspace) |
SelfT |
Statement.setRoutingKeyspace(CqlIdentifier newRoutingKeyspace)
Sets the keyspace to use for token-aware routing.
|
default SelfT |
Bindable.unset(CqlIdentifier id)
Unsets the value for the first occurrence of
id . |
Modifier and Type | Method and Description |
---|---|
SimpleStatement |
SimpleStatement.setNamedValuesWithIds(Map<CqlIdentifier,Object> newNamedValues)
Sets the named values to bind to named placeholders.
|
Constructor and Description |
---|
BoundStatementBuilder(PreparedStatement preparedStatement,
ColumnDefinitions variableDefinitions,
ByteBuffer[] values,
String executionProfileName,
DriverExecutionProfile executionProfile,
CqlIdentifier routingKeyspace,
ByteBuffer routingKey,
Token routingToken,
Map<String,ByteBuffer> customPayload,
Boolean idempotent,
boolean tracing,
long timestamp,
ByteBuffer pagingState,
int pageSize,
ConsistencyLevel consistencyLevel,
ConsistencyLevel serialConsistencyLevel,
Duration timeout,
CodecRegistry codecRegistry,
ProtocolVersion protocolVersion) |
Modifier and Type | Method and Description |
---|---|
default List<Integer> |
AccessibleById.allIndicesOf(CqlIdentifier id)
Returns all the indices where a given identifier appears.
|
int |
AccessibleById.firstIndexOf(CqlIdentifier id)
Returns the first index where a given identifier appears (depending on the implementation,
identifiers may appear multiple times).
|
default <ValueT> ValueT |
GettableById.get(CqlIdentifier id,
Class<ValueT> targetClass)
Returns the value for the first occurrence of
id , converting it to the given Java type. |
default <ValueT> ValueT |
GettableById.get(CqlIdentifier id,
GenericType<ValueT> targetType)
Returns the value for the first occurrence of
id , converting it to the given Java type. |
default <ValueT> ValueT |
GettableById.get(CqlIdentifier id,
TypeCodec<ValueT> codec)
Returns the value for the first occurrence of
id , using the given codec for the
conversion. |
default BigDecimal |
GettableById.getBigDecimal(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java big decimal. |
default BigInteger |
GettableById.getBigInteger(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java big integer. |
default boolean |
GettableById.getBool(CqlIdentifier id)
Deprecated.
this method only exists to ease the transition from driver 3, it is an alias for
GettableById.getBoolean(CqlIdentifier) . |
default boolean |
GettableById.getBoolean(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java primitive boolean. |
default byte |
GettableById.getByte(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java primitive byte. |
default ByteBuffer |
GettableById.getByteBuffer(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java byte buffer. |
default ByteBuffer |
GettableById.getBytesUnsafe(CqlIdentifier id)
Returns the raw binary representation of the value for the first occurrence of
id . |
default CqlDuration |
GettableById.getCqlDuration(CqlIdentifier id)
Returns the value for the first occurrence of
id as a duration. |
default double |
GettableById.getDouble(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java primitive double. |
default float |
GettableById.getFloat(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java primitive float. |
default InetAddress |
GettableById.getInetAddress(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java IP address. |
default Instant |
GettableById.getInstant(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java instant. |
default int |
GettableById.getInt(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java primitive integer. |
default <ElementT> List<ElementT> |
GettableById.getList(CqlIdentifier id,
Class<ElementT> elementsClass)
Returns the value for the first occurrence of
id as a Java list. |
default LocalDate |
GettableById.getLocalDate(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java local date. |
default LocalTime |
GettableById.getLocalTime(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java local time. |
default long |
GettableById.getLong(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java primitive long. |
default <KeyT,ValueT> |
GettableById.getMap(CqlIdentifier id,
Class<KeyT> keyClass,
Class<ValueT> valueClass)
Returns the value for the first occurrence of
id as a Java map. |
default Object |
GettableById.getObject(CqlIdentifier id)
Returns the value for the first occurrence of
id , converting it to the most appropriate
Java type. |
default <ElementT> Set<ElementT> |
GettableById.getSet(CqlIdentifier id,
Class<ElementT> elementsClass)
Returns the value for the first occurrence of
id as a Java set. |
default short |
GettableById.getShort(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java primitive short. |
default String |
GettableById.getString(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java string. |
default Token |
GettableById.getToken(CqlIdentifier id)
Returns the value for the first occurrence of
id as a token. |
default TupleValue |
GettableById.getTupleValue(CqlIdentifier id)
Returns the value for the first occurrence of
id as a tuple value. |
default DataType |
SettableById.getType(CqlIdentifier id) |
DataType |
AccessibleById.getType(CqlIdentifier id)
Returns the CQL type of the value for the first occurrence of
id . |
default UdtValue |
GettableById.getUdtValue(CqlIdentifier id)
Returns the value for the first occurrence of
id as a user defined type value. |
default UUID |
GettableById.getUuid(CqlIdentifier id)
Returns the value for the first occurrence of
id as a Java UUID. |
default boolean |
GettableById.isNull(CqlIdentifier id)
Indicates whether the value for the first occurrence of
id is a CQL NULL . |
default <ValueT> SelfT |
SettableById.set(CqlIdentifier id,
ValueT v,
Class<ValueT> targetClass)
Returns the value for all occurrences of
id , converting it to the given Java type. |
default <ValueT> SelfT |
SettableById.set(CqlIdentifier id,
ValueT v,
GenericType<ValueT> targetType)
Sets the value for all occurrences of
id , converting it to the given Java type. |
default <ValueT> SelfT |
SettableById.set(CqlIdentifier id,
ValueT v,
TypeCodec<ValueT> codec)
Sets the value for all occurrences of
id , using the given codec for the conversion. |
default SelfT |
SettableById.setBigDecimal(CqlIdentifier id,
BigDecimal v)
Sets the value for all occurrences of
id to the provided Java big decimal. |
default SelfT |
SettableById.setBigInteger(CqlIdentifier id,
BigInteger v)
Sets the value for all occurrences of
id to the provided Java big integer. |
default SelfT |
SettableById.setBool(CqlIdentifier id,
boolean v)
Deprecated.
this method only exists to ease the transition from driver 3, it is an alias for
SettableById.setBoolean(CqlIdentifier, boolean) . |
default SelfT |
SettableById.setBoolean(CqlIdentifier id,
boolean v)
Sets the value for all occurrences of
id to the provided Java primitive boolean. |
default SelfT |
SettableById.setByte(CqlIdentifier id,
byte v)
Sets the value for all occurrences of
id to the provided Java primitive byte. |
default SelfT |
SettableById.setByteBuffer(CqlIdentifier id,
ByteBuffer v)
Sets the value for all occurrences of
id to the provided Java byte buffer. |
default SelfT |
SettableById.setBytesUnsafe(CqlIdentifier id,
ByteBuffer v)
Sets the raw binary representation of the value for all occurrences of
id . |
default SelfT |
SettableById.setCqlDuration(CqlIdentifier id,
CqlDuration v)
Sets the value for all occurrences of
id to the provided duration. |
default SelfT |
SettableById.setDouble(CqlIdentifier id,
double v)
Sets the value for all occurrences of
id to the provided Java primitive double. |
default SelfT |
SettableById.setFloat(CqlIdentifier id,
float v)
Sets the value for all occurrences of
id to the provided Java primitive float. |
default SelfT |
SettableById.setInetAddress(CqlIdentifier id,
InetAddress v)
Sets the value for all occurrences of
id to the provided Java IP address. |
default SelfT |
SettableById.setInstant(CqlIdentifier id,
Instant v)
Sets the value for all occurrences of
id to the provided Java instant. |
default SelfT |
SettableById.setInt(CqlIdentifier id,
int v)
Sets the value for all occurrences of
id to the provided Java primitive integer. |
default <ElementT> SelfT |
SettableById.setList(CqlIdentifier id,
List<ElementT> v,
Class<ElementT> elementsClass)
Sets the value for all occurrences of
id to the provided Java list. |
default SelfT |
SettableById.setLocalDate(CqlIdentifier id,
LocalDate v)
Sets the value for all occurrences of
id to the provided Java local date. |
default SelfT |
SettableById.setLocalTime(CqlIdentifier id,
LocalTime v)
Sets the value for all occurrences of
id to the provided Java local time. |
default SelfT |
SettableById.setLong(CqlIdentifier id,
long v)
Sets the value for all occurrences of
id to the provided Java primitive long. |
default <KeyT,ValueT> |
SettableById.setMap(CqlIdentifier id,
Map<KeyT,ValueT> v,
Class<KeyT> keyClass,
Class<ValueT> valueClass)
Sets the value for all occurrences of
id to the provided Java map. |
default <ElementT> SelfT |
SettableById.setSet(CqlIdentifier id,
Set<ElementT> v,
Class<ElementT> elementsClass)
Sets the value for all occurrences of
id to the provided Java set. |
default SelfT |
SettableById.setShort(CqlIdentifier id,
short v)
Sets the value for all occurrences of
id to the provided Java primitive short. |
default SelfT |
SettableById.setString(CqlIdentifier id,
String v)
Sets the value for all occurrences of
id to the provided Java string. |
default SelfT |
SettableById.setToken(CqlIdentifier id,
Token v)
Sets the value for all occurrences of
id to the provided token. |
default SelfT |
SettableById.setToNull(CqlIdentifier id)
Sets the value for all occurrences of
id to CQL NULL . |
default SelfT |
SettableById.setTupleValue(CqlIdentifier id,
TupleValue v)
Sets the value for all occurrences of
id to the provided tuple value. |
default SelfT |
SettableById.setUdtValue(CqlIdentifier id,
UdtValue v)
Sets the value for all occurrences of
id to the provided user defined type value. |
default SelfT |
SettableById.setUuid(CqlIdentifier id,
UUID v)
Sets the value for all occurrences of
id to the provided Java UUID. |
Modifier and Type | Method and Description |
---|---|
Map<CqlIdentifier,KeyspaceMetadata> |
Metadata.getKeyspaces()
The keyspaces defined in this cluster.
|
Modifier and Type | Method and Description |
---|---|
default Optional<KeyspaceMetadata> |
Metadata.getKeyspace(CqlIdentifier keyspaceId) |
Set<Node> |
TokenMap.getReplicas(CqlIdentifier keyspace,
ByteBuffer partitionKey)
The replicas for a given partition key in the given keyspace.
|
Set<Node> |
TokenMap.getReplicas(CqlIdentifier keyspace,
Token token)
The replicas for a given token in the given keyspace.
|
default Set<Node> |
TokenMap.getReplicas(CqlIdentifier keyspace,
TokenRange range)
The replicas for a given range in the given keyspace.
|
Set<TokenRange> |
TokenMap.getTokenRanges(CqlIdentifier keyspace,
Node replica)
The token ranges that are replicated on the given node, for the given keyspace.
|
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
ViewMetadata.getBaseTable()
The table that this view is based on.
|
CqlIdentifier |
RelationMetadata.getKeyspace() |
CqlIdentifier |
IndexMetadata.getKeyspace() |
CqlIdentifier |
FunctionMetadata.getKeyspace() |
CqlIdentifier |
ColumnMetadata.getKeyspace() |
CqlIdentifier |
AggregateMetadata.getKeyspace() |
CqlIdentifier |
RelationMetadata.getName() |
CqlIdentifier |
KeyspaceMetadata.getName() |
CqlIdentifier |
IndexMetadata.getName() |
CqlIdentifier |
FunctionSignature.getName() |
CqlIdentifier |
ColumnMetadata.getName() |
CqlIdentifier |
ColumnMetadata.getParent()
The identifier of the
TableMetadata or a ViewMetadata that this column belongs
to. |
CqlIdentifier |
IndexMetadata.getTable() |
Modifier and Type | Method and Description |
---|---|
Map<CqlIdentifier,ColumnMetadata> |
RelationMetadata.getColumns() |
Map<CqlIdentifier,IndexMetadata> |
TableMetadata.getIndexes() |
Map<CqlIdentifier,Object> |
RelationMetadata.getOptions()
The options of this table or materialized view.
|
List<CqlIdentifier> |
FunctionMetadata.getParameterNames()
The names of the parameters.
|
Map<CqlIdentifier,TableMetadata> |
KeyspaceMetadata.getTables() |
Map<CqlIdentifier,UserDefinedType> |
KeyspaceMetadata.getUserDefinedTypes() |
Map<CqlIdentifier,ViewMetadata> |
KeyspaceMetadata.getViews() |
default Map<CqlIdentifier,ViewMetadata> |
KeyspaceMetadata.getViewsOnTable(CqlIdentifier tableId)
Gets the views based on a given table.
|
Modifier and Type | Method and Description |
---|---|
default Optional<AggregateMetadata> |
KeyspaceMetadata.getAggregate(CqlIdentifier aggregateId,
DataType... parameterTypes) |
default Optional<AggregateMetadata> |
KeyspaceMetadata.getAggregate(CqlIdentifier aggregateId,
Iterable<DataType> parameterTypes) |
default Optional<ColumnMetadata> |
RelationMetadata.getColumn(CqlIdentifier columnId) |
default Optional<FunctionMetadata> |
KeyspaceMetadata.getFunction(CqlIdentifier functionId,
DataType... parameterTypes) |
default Optional<FunctionMetadata> |
KeyspaceMetadata.getFunction(CqlIdentifier functionId,
Iterable<DataType> parameterTypes) |
default Optional<IndexMetadata> |
TableMetadata.getIndex(CqlIdentifier indexId) |
default Optional<TableMetadata> |
KeyspaceMetadata.getTable(CqlIdentifier tableId) |
default Optional<UserDefinedType> |
KeyspaceMetadata.getUserDefinedType(CqlIdentifier typeId) |
default Optional<ViewMetadata> |
KeyspaceMetadata.getView(CqlIdentifier viewId) |
default Map<CqlIdentifier,ViewMetadata> |
KeyspaceMetadata.getViewsOnTable(CqlIdentifier tableId)
Gets the views based on a given table.
|
Constructor and Description |
---|
FunctionSignature(CqlIdentifier name,
DataType... parameterTypes) |
FunctionSignature(CqlIdentifier name,
Iterable<DataType> parameterTypes) |
Modifier and Type | Field and Description |
---|---|
protected CqlIdentifier |
SessionBuilder.keyspace |
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
Request.getKeyspace()
The CQL keyspace to execute this request in, or
null if this request does not specify
any keyspace. |
CqlIdentifier |
Request.getRoutingKeyspace()
The keyspace to use for token-aware routing.
|
Modifier and Type | Method and Description |
---|---|
Optional<CqlIdentifier> |
Session.getKeyspace()
The keyspace that this session is currently connected to, or
Optional.empty() if this
session is not connected to any keyspace. |
Modifier and Type | Method and Description |
---|---|
SelfT |
SessionBuilder.withKeyspace(CqlIdentifier keyspace)
Sets the keyspace to connect the session to.
|
Modifier and Type | Method and Description |
---|---|
long |
SpeculativeExecutionPolicy.nextExecution(Node node,
CqlIdentifier keyspace,
Request request,
int runningExecutions) |
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
UserDefinedType.getKeyspace() |
CqlIdentifier |
UserDefinedType.getName() |
Modifier and Type | Method and Description |
---|---|
List<CqlIdentifier> |
UserDefinedType.getFieldNames() |
Modifier and Type | Method and Description |
---|---|
default List<Integer> |
UserDefinedType.allIndicesOf(CqlIdentifier id) |
default boolean |
UserDefinedType.contains(CqlIdentifier id) |
int |
UserDefinedType.firstIndexOf(CqlIdentifier id) |
Modifier and Type | Field and Description |
---|---|
protected CqlIdentifier |
MapperBuilder.defaultKeyspaceId |
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
MapperContext.getKeyspaceId()
If this context belongs to a DAO that was built with a keyspace-parameterized mapper method,
the value of that parameter.
|
CqlIdentifier |
MapperContext.getTableId()
If this context belongs to a DAO that was built with a table-parameterized mapper method, the
value of that parameter.
|
Modifier and Type | Method and Description |
---|---|
MapperBuilder<MapperT> |
MapperBuilder.withDefaultKeyspace(CqlIdentifier keyspaceId)
Specifies a default keyspace that will be used for all DAOs built with this mapper (unless they
specify their own keyspace).
|
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
EntityHelper.getKeyspaceId()
The keyspace used in the queries generated by this helper.
|
CqlIdentifier |
EntityHelper.getTableId()
The table used in the queries generated by this helper.
|
Modifier and Type | Method and Description |
---|---|
static AlterKeyspaceStart |
SchemaBuilder.alterKeyspace(CqlIdentifier keyspaceName)
Starts an ALTER KEYSPACE query.
|
static AlterMaterializedViewStart |
SchemaBuilder.alterMaterializedView(CqlIdentifier viewName)
Starts an ALTER MATERIALIZED VIEW query with the given view name.
|
static AlterMaterializedViewStart |
SchemaBuilder.alterMaterializedView(CqlIdentifier keyspace,
CqlIdentifier viewName)
Starts an ALTER MATERIALIZED VIEW query with the given view name for the given keyspace name.
|
static AlterTableStart |
SchemaBuilder.alterTable(CqlIdentifier tableName)
Starts an ALTER TABLE query with the given table name.
|
static AlterTableStart |
SchemaBuilder.alterTable(CqlIdentifier keyspace,
CqlIdentifier tableName)
Starts an ALTER TABLE query with the given table name for the given keyspace name.
|
static AlterTypeStart |
SchemaBuilder.alterType(CqlIdentifier typeName)
Starts an ALTER TYPE query with the given type name.
|
static AlterTypeStart |
SchemaBuilder.alterType(CqlIdentifier keyspace,
CqlIdentifier typeName)
Starts an ALTER TYPE query with the given type name for the given keyspace name.
|
static BindMarker |
QueryBuilder.bindMarker(CqlIdentifier id)
Creates a named bind marker, which appears as
:id in the generated CQL. |
static CreateAggregateStart |
SchemaBuilder.createAggregate(CqlIdentifier aggregateName)
Starts a CREATE AGGREGATE query with the given aggregate name.
|
static CreateAggregateStart |
SchemaBuilder.createAggregate(CqlIdentifier keyspace,
CqlIdentifier aggregateName)
Starts a CREATE AGGREGATE query with the given aggregate name for the given keyspace name.
|
static CreateFunctionStart |
SchemaBuilder.createFunction(CqlIdentifier functionName)
Starts a CREATE FUNCTION query with the given function name.
|
static CreateFunctionStart |
SchemaBuilder.createFunction(CqlIdentifier keyspace,
CqlIdentifier functionName)
Starts a CREATE FUNCTION query with the given function name for the given keyspace name.
|
static CreateIndexStart |
SchemaBuilder.createIndex(CqlIdentifier indexName)
Starts a CREATE INDEX query with the given name.
|
static CreateKeyspaceStart |
SchemaBuilder.createKeyspace(CqlIdentifier keyspaceName)
Starts a CREATE KEYSPACE query.
|
static CreateMaterializedViewStart |
SchemaBuilder.createMaterializedView(CqlIdentifier viewName)
Starts a CREATE MATERIALIZED VIEW query with the given view name.
|
static CreateMaterializedViewStart |
SchemaBuilder.createMaterializedView(CqlIdentifier keyspace,
CqlIdentifier viewName)
Starts a CREATE MATERIALIZED VIEW query with the given view name for the given keyspace name.
|
static CreateTableStart |
SchemaBuilder.createTable(CqlIdentifier tableName)
Starts a CREATE TABLE query with the given table name.
|
static CreateTableStart |
SchemaBuilder.createTable(CqlIdentifier keyspace,
CqlIdentifier tableName)
Starts a CREATE TABLE query with the given table name for the given keyspace name.
|
static CreateTypeStart |
SchemaBuilder.createType(CqlIdentifier typeName)
Starts a CREATE TYPE query with the given type name.
|
static CreateTypeStart |
SchemaBuilder.createType(CqlIdentifier keyspace,
CqlIdentifier typeName)
Starts a CREATE TYPE query with the given type name for the given keyspace name.
|
static DeleteSelection |
QueryBuilder.deleteFrom(CqlIdentifier table)
Starts a DELETE query for an unqualified table.
|
static DeleteSelection |
QueryBuilder.deleteFrom(CqlIdentifier keyspace,
CqlIdentifier table)
Starts a DELETE query for a qualified table.
|
static Drop |
SchemaBuilder.dropAggregate(CqlIdentifier aggregateName)
Starts an DROP AGGREGATE query.
|
static Drop |
SchemaBuilder.dropAggregate(CqlIdentifier keyspace,
CqlIdentifier aggregateName)
Starts an DROP AGGREGATE query for the given aggregate name for the given keyspace name.
|
static Drop |
SchemaBuilder.dropFunction(CqlIdentifier functionName)
Starts a DROP FUNCTION query.
|
static Drop |
SchemaBuilder.dropFunction(CqlIdentifier keyspace,
CqlIdentifier functionName)
Starts a DROP FUNCTION query for the given function name for the given keyspace name.
|
static Drop |
SchemaBuilder.dropIndex(CqlIdentifier indexName)
Starts a DROP INDEX query.
|
static Drop |
SchemaBuilder.dropIndex(CqlIdentifier keyspace,
CqlIdentifier indexName)
Starts a DROP INDEX query for the given index for the given keyspace name.
|
static Drop |
SchemaBuilder.dropKeyspace(CqlIdentifier keyspaceName)
Starts a DROP KEYSPACE query.
|
static Drop |
SchemaBuilder.dropMaterializedView(CqlIdentifier viewName)
Starts a DROP MATERIALIZED VIEW query.
|
static Drop |
SchemaBuilder.dropMaterializedView(CqlIdentifier keyspace,
CqlIdentifier viewName)
Starts a DROP MATERIALIZED VIEW query for the given view name for the given keyspace name.
|
static Drop |
SchemaBuilder.dropTable(CqlIdentifier tableName)
Starts a DROP TABLE query.
|
static Drop |
SchemaBuilder.dropTable(CqlIdentifier keyspace,
CqlIdentifier tableName)
Starts a DROP TABLE query for the given table name for the given keyspace name.
|
static Drop |
SchemaBuilder.dropType(CqlIdentifier typeName)
Starts a DROP TYPE query.
|
static Drop |
SchemaBuilder.dropType(CqlIdentifier keyspace,
CqlIdentifier typeName)
Starts a DROP TYPE query for the given view name for the given type name.
|
static Term |
QueryBuilder.function(CqlIdentifier keyspaceId,
CqlIdentifier functionId,
Iterable<Term> arguments)
A function call as a term, as in
WHERE k = ks.f(arguments) . |
static Term |
QueryBuilder.function(CqlIdentifier keyspaceId,
CqlIdentifier functionId,
Term... arguments)
Var-arg equivalent of
QueryBuilder.function(CqlIdentifier, CqlIdentifier, Iterable) . |
static Term |
QueryBuilder.function(CqlIdentifier functionId,
Iterable<Term> arguments)
A function call as a term, as in
WHERE k = f(arguments) . |
static Term |
QueryBuilder.function(CqlIdentifier functionId,
Term... arguments)
Var-arg equivalent of
QueryBuilder.function(CqlIdentifier, Iterable) . |
static InsertInto |
QueryBuilder.insertInto(CqlIdentifier table)
Starts an INSERT query for an unqualified table.
|
static InsertInto |
QueryBuilder.insertInto(CqlIdentifier keyspace,
CqlIdentifier table)
Starts an INSERT query for a qualified table.
|
static SelectFrom |
QueryBuilder.selectFrom(CqlIdentifier table)
Starts a SELECT query for an unqualified table.
|
static SelectFrom |
QueryBuilder.selectFrom(CqlIdentifier keyspace,
CqlIdentifier table)
Starts a SELECT query for a qualified table.
|
static Truncate |
QueryBuilder.truncate(CqlIdentifier table)
Creates a new
TRUNCATE query. |
static Truncate |
QueryBuilder.truncate(CqlIdentifier keyspace,
CqlIdentifier table)
Creates a new
TRUNCATE query. |
static UserDefinedType |
QueryBuilder.udt(CqlIdentifier name)
Shortcut to reference a UDT in methods that use a
DataType , such as QueryBuilder.typeHint(Term, DataType) and Selector.cast(Selector, DataType) . |
static UserDefinedType |
SchemaBuilder.udt(CqlIdentifier name,
boolean frozen)
Shortcut for creating a user-defined
DataType for use in UDT and Table builder
definitions, such as CreateTable.withColumn(CqlIdentifier, DataType) . |
static UpdateStart |
QueryBuilder.update(CqlIdentifier table)
Starts an UPDATE query for an unqualified table.
|
static UpdateStart |
QueryBuilder.update(CqlIdentifier keyspace,
CqlIdentifier table)
Starts an UPDATE query for a qualified table.
|
Modifier and Type | Method and Description |
---|---|
static ConditionBuilder<Condition> |
Condition.column(CqlIdentifier columnId)
Builds a condition on a column for a conditional statement, as in {@code DELETE...
|
static ConditionBuilder<Condition> |
Condition.element(CqlIdentifier columnId,
Term index)
Builds a condition on an element in a collection column for a conditional statement, as in
{@code DELETE...
|
static ConditionBuilder<Condition> |
Condition.field(CqlIdentifier columnId,
CqlIdentifier fieldId)
Builds a condition on a field in a UDT column for a conditional statement, as in {@code
DELETE...
|
default ConditionBuilder<SelfT> |
ConditionalStatement.ifColumn(CqlIdentifier columnId)
Adds an IF condition on a simple column, as in {@code DELETE...
|
default ConditionBuilder<SelfT> |
ConditionalStatement.ifElement(CqlIdentifier columnId,
Term index)
Adds an IF condition on an element in a collection column for a conditional statement, as in
{@code DELETE...
|
default ConditionBuilder<SelfT> |
ConditionalStatement.ifField(CqlIdentifier columnId,
CqlIdentifier fieldId)
Adds an IF condition on a field in a UDT column for a conditional statement, as in {@code
DELETE...
|
Modifier and Type | Method and Description |
---|---|
default DeleteSelection |
DeleteSelection.column(CqlIdentifier columnId)
Deletes a particular column by its CQL identifier.
|
default DeleteSelection |
DeleteSelection.element(CqlIdentifier collectionId,
Term index)
Deletes an element in a collection column, as in
DELETE m['key'] . |
default DeleteSelection |
DeleteSelection.field(CqlIdentifier udtColumnId,
CqlIdentifier fieldId)
Deletes a field inside of a UDT column, as in
DELETE user.name . |
Modifier and Type | Method and Description |
---|---|
RegularInsert |
OngoingValues.value(CqlIdentifier columnId,
Term value)
Sets a value for a column, as in {@code INSERT INTO ...
|
Modifier and Type | Method and Description |
---|---|
default RegularInsert |
OngoingValues.valuesByIds(Map<CqlIdentifier,Term> newAssignments)
Sets values for multiple columns in one call, as in {@code INSERT INTO ...
|
Modifier and Type | Method and Description |
---|---|
static ColumnRelationBuilder<Relation> |
Relation.column(CqlIdentifier id)
Builds a relation testing a column.
|
static MultiColumnRelationBuilder<Relation> |
Relation.columns(CqlIdentifier... identifiers)
Var-arg equivalent of
Relation.columnIds(Iterable) . |
static Relation |
Relation.customIndex(CqlIdentifier indexId,
Term expression)
Builds a relation on a custom index.
|
static ColumnComponentRelationBuilder<Relation> |
Relation.mapValue(CqlIdentifier columnId,
Term index)
Builds a relation testing a value in a map (Cassandra 4 and above).
|
static TokenRelationBuilder<Relation> |
Relation.token(CqlIdentifier... identifiers)
Var-arg equivalent of
Relation.tokenFromIds(Iterable) . |
default ColumnRelationBuilder<SelfT> |
OngoingWhereClause.whereColumn(CqlIdentifier id)
Adds a relation testing a column.
|
default MultiColumnRelationBuilder<SelfT> |
OngoingWhereClause.whereColumns(CqlIdentifier... identifiers)
Var-arg equivalent of
OngoingWhereClause.whereColumnIds(Iterable) . |
default SelfT |
OngoingWhereClause.whereCustomIndex(CqlIdentifier indexId,
Term expression)
Adds a relation on a custom index.
|
default ColumnComponentRelationBuilder<SelfT> |
OngoingWhereClause.whereMapValue(CqlIdentifier columnId,
Term index)
Adds a relation testing a value in a map (Cassandra 4 and above).
|
default TokenRelationBuilder<SelfT> |
OngoingWhereClause.whereToken(CqlIdentifier... identifiers)
Var-arg equivalent of
OngoingWhereClause.whereTokenFromIds(Iterable) . |
Modifier and Type | Method and Description |
---|---|
static MultiColumnRelationBuilder<Relation> |
Relation.columnIds(Iterable<CqlIdentifier> identifiers)
Builds a multi-column relation, as in
WHERE (c1, c2, c3) IN ... . |
static TokenRelationBuilder<Relation> |
Relation.tokenFromIds(Iterable<CqlIdentifier> identifiers)
Builds a relation testing a token generated from a set of columns.
|
default MultiColumnRelationBuilder<SelfT> |
OngoingWhereClause.whereColumnIds(Iterable<CqlIdentifier> identifiers)
Adds a multi-column relation, as in
WHERE (c1, c2, c3) IN ... . |
default TokenRelationBuilder<SelfT> |
OngoingWhereClause.whereTokenFromIds(Iterable<CqlIdentifier> identifiers)
Adds a relation testing a token generated from a set of columns.
|
Modifier and Type | Method and Description |
---|---|
AlterTableAddColumnEnd |
AlterTableAddColumn.addColumn(CqlIdentifier columnName,
DataType dataType)
Adds a column definition in the ALTER TABLE statement.
|
BuildableQuery |
AlterTypeStart.addField(CqlIdentifier fieldName,
DataType dataType)
Completes ALTER TYPE by adding a field definition in the ALTER TYPE statement.
|
AlterTableAddColumnEnd |
AlterTableAddColumn.addStaticColumn(CqlIdentifier columnName,
DataType dataType)
Adds a static column definition in the ALTER TABLE statement.
|
BuildableQuery |
AlterTableStart.alterColumn(CqlIdentifier columnName,
DataType dataType)
Completes ALTER TABLE specifying the the type of a column should be changed.
|
BuildableQuery |
AlterTypeStart.alterField(CqlIdentifier fieldName,
DataType dataType)
Completes ALTER TYPE specifying the the type of a field should be changed.
|
default CreateIndex |
CreateIndexOnTable.andColumn(CqlIdentifier columnName)
Specifies the column to create the index on.
|
CreateIndex |
CreateIndexOnTable.andColumn(CqlIdentifier columnName,
String indexType)
Specifies to create the index on a given column with the given index type.
|
default CreateIndex |
CreateIndexOnTable.andColumnEntries(CqlIdentifier columnName)
Specifies to create the index on the given columns' entries (key-value pairs), this must be
done against a
map column. |
default CreateIndex |
CreateIndexOnTable.andColumnFull(CqlIdentifier columnName)
Specifies to create the index on the given columns' entire value, this must be done against a
frozen collection column. |
default CreateIndex |
CreateIndexOnTable.andColumnKeys(CqlIdentifier columnName)
Specifies to create the index on the given columns' keys, this must be done against a
map
column. |
default CreateIndex |
CreateIndexOnTable.andColumnValues(CqlIdentifier columnName)
Specifies to create the index on the given columns' values, this must be done against a
map column. |
CreateMaterializedViewSelection |
CreateMaterializedViewStart.asSelectFrom(CqlIdentifier table)
Specifies the base table for the materialized view.
|
CreateMaterializedViewSelection |
CreateMaterializedViewStart.asSelectFrom(CqlIdentifier keyspace,
CqlIdentifier table)
Specifies the base table for the materialized view.
|
CreateMaterializedViewSelectionWithColumns |
CreateMaterializedViewSelection.column(CqlIdentifier columnName)
Selects a particular column by its CQL identifier.
|
default CreateMaterializedViewSelectionWithColumns |
CreateMaterializedViewSelection.columns(CqlIdentifier... columnIds)
Var-arg equivalent of
CreateMaterializedViewSelection.columnsIds(Iterable) . |
default AlterTableDropColumnEnd |
AlterTableDropColumn.dropColumn(CqlIdentifier columnName)
Adds a column to drop to ALTER TABLE specification.
|
AlterTableDropColumnEnd |
AlterTableDropColumn.dropColumns(CqlIdentifier... columnNames)
Adds column(s) to drop to ALTER TABLE specification.
|
default CreateIndexOnTable |
CreateIndexStart.onTable(CqlIdentifier table)
Indicates which table this index is on.
|
CreateIndexOnTable |
CreateIndexStart.onTable(CqlIdentifier keyspace,
CqlIdentifier table)
Indicates which table this index is on.
|
AlterTableRenameColumnEnd |
AlterTableRenameColumn.renameColumn(CqlIdentifier from,
CqlIdentifier to)
Adds a column rename to ALTER TABLE specification.
|
AlterTypeRenameFieldEnd |
AlterTypeRenameField.renameField(CqlIdentifier from,
CqlIdentifier to)
Adds a field rename to ALTER TYPE specification.
|
CreateMaterializedViewPrimaryKey |
CreateMaterializedViewPrimaryKey.withClusteringColumn(CqlIdentifier columnName)
Adds a clustering column to primary key definition.
|
CreateTable |
CreateTable.withClusteringColumn(CqlIdentifier columnName,
DataType dataType)
Adds a clustering column definition in the CREATE TABLE statement.
|
SelfT |
RelationStructure.withClusteringOrder(CqlIdentifier columnName,
ClusteringOrder order)
Adds the provided clustering order.
|
CreateTable |
CreateTable.withColumn(CqlIdentifier columnName,
DataType dataType)
Adds a column definition in the CREATE TABLE statement.
|
CreateType |
OngoingCreateType.withField(CqlIdentifier identifier,
DataType dataType)
Adds a field definition in the CREATE TYPE statement.
|
CreateAggregateEnd |
CreateAggregateEnd.withFinalFunc(CqlIdentifier finalFunc)
Adds FINALFUNC to the create aggregate query.
|
CreateFunctionStart |
CreateFunctionStart.withParameter(CqlIdentifier paramName,
DataType paramType)
Adds a parameter definition in the CREATE FUNCTION statement.
|
CreateMaterializedViewPrimaryKey |
CreateMaterializedViewPrimaryKeyStart.withPartitionKey(CqlIdentifier columnName)
Adds a partition key to primary key definition.
|
CreateTable |
OngoingPartitionKey.withPartitionKey(CqlIdentifier columnName,
DataType dataType)
Adds a partition key column definition.
|
CreateAggregateStateFunc |
CreateAggregateStart.withSFunc(CqlIdentifier sfuncName)
Adds SFUNC to the create aggregate specification.
|
CreateTable |
CreateTable.withStaticColumn(CqlIdentifier columnName,
DataType dataType)
Adds a static column definition in the CREATE TABLE statement.
|
Modifier and Type | Method and Description |
---|---|
CreateMaterializedViewSelectionWithColumns |
CreateMaterializedViewSelection.columnsIds(Iterable<CqlIdentifier> columnIds)
Convenience method to select multiple simple columns at once, as in
SELECT a,b,c . |
SelfT |
RelationStructure.withClusteringOrderByIds(Map<CqlIdentifier,ClusteringOrder> orderings)
Adds the provided CLUSTERING ORDER.
|
Modifier and Type | Method and Description |
---|---|
CqlIdentifier |
Selector.getAlias() |
Modifier and Type | Method and Description |
---|---|
Selector |
Selector.as(CqlIdentifier alias)
Aliases the selector, as in
SELECT count(*) AS total . |
Select |
OngoingSelection.as(CqlIdentifier alias)
Aliases the last added selector, as in
SELECT count(*) AS total . |
static Selector |
Selector.column(CqlIdentifier columnId)
Selects a particular column by its CQL identifier.
|
default Select |
OngoingSelection.column(CqlIdentifier columnId)
Selects a particular column by its CQL identifier.
|
default Select |
OngoingSelection.columns(CqlIdentifier... columnIds)
Var-arg equivalent of
OngoingSelection.columnsIds(Iterable) . |
static Selector |
Selector.element(CqlIdentifier collectionId,
Term index)
Shortcut for element selection when the target collection is a simple column.
|
default Select |
OngoingSelection.element(CqlIdentifier collectionId,
Term index)
Shortcut for element selection when the target collection is a simple column.
|
static Selector |
Selector.field(CqlIdentifier udtColumnId,
CqlIdentifier fieldId)
Shortcut to select a UDT field when the UDT is a simple column (as opposed to a more complex
selection, like a nested UDT).
|
default Select |
OngoingSelection.field(CqlIdentifier udtColumnId,
CqlIdentifier fieldId)
Shortcut to select a UDT field when the UDT is a simple column (as opposed to a more complex
selection, like a nested UDT).
|
static Selector |
Selector.field(Selector udt,
CqlIdentifier fieldId)
Selects a field inside of a UDT column, as in
SELECT user.name . |
default Select |
OngoingSelection.field(Selector udt,
CqlIdentifier fieldId)
Selects a field inside of a UDT column, as in
SELECT user.name . |
static Selector |
Selector.function(CqlIdentifier keyspaceId,
CqlIdentifier functionId,
Iterable<Selector> arguments)
Selects the result of a function call, as is
SELECT ks.f(a,b) |
default Select |
OngoingSelection.function(CqlIdentifier keyspaceId,
CqlIdentifier functionId,
Iterable<Selector> arguments)
Selects the result of a function call, as is
SELECT f(a,b) |
static Selector |
Selector.function(CqlIdentifier keyspaceId,
CqlIdentifier functionId,
Selector... arguments)
Var-arg equivalent of
Selector.function(CqlIdentifier, CqlIdentifier, Iterable) . |
default Select |
OngoingSelection.function(CqlIdentifier keyspaceId,
CqlIdentifier functionId,
Selector... arguments)
Var-arg equivalent of
OngoingSelection.function(CqlIdentifier,CqlIdentifier, Iterable) . |
static Selector |
Selector.function(CqlIdentifier functionId,
Iterable<Selector> arguments)
Selects the result of a function call, as is
SELECT f(a,b) |
default Select |
OngoingSelection.function(CqlIdentifier functionId,
Iterable<Selector> arguments)
Selects the result of a function call, as is
SELECT f(a,b) |
static Selector |
Selector.function(CqlIdentifier functionId,
Selector... arguments)
Var-arg equivalent of
Selector.function(CqlIdentifier, Iterable) . |
default Select |
OngoingSelection.function(CqlIdentifier functionId,
Selector... arguments)
Var-arg equivalent of
OngoingSelection.function(CqlIdentifier, Iterable) . |
default Select |
Select.groupBy(CqlIdentifier columnId)
Shortcut for
groupBy(Selector.column(columnId)) . |
default Select |
Select.groupByColumnIds(CqlIdentifier... columnIds)
Var-arg equivalent of
Select.groupByColumnIds(Iterable) . |
Select |
Select.orderBy(CqlIdentifier columnId,
ClusteringOrder order)
Adds the provided ORDER BY clause to the query.
|
static Selector |
Selector.range(CqlIdentifier collectionId,
Term left,
Term right)
Shortcut for slice selection when the target collection is a simple column.
|
default Select |
OngoingSelection.range(CqlIdentifier collectionId,
Term left,
Term right)
Shortcut for slice selection when the target collection is a simple column.
|
static Selector |
Selector.toDate(CqlIdentifier columnId)
Shortcut to select the result of the built-in
toDate function on a simple column. |
default Select |
OngoingSelection.toDate(CqlIdentifier columnId)
Shortcut to select the result of the built-in
toDate function. |
static Selector |
Selector.toTimestamp(CqlIdentifier columnId)
Shortcut to select the result of the built-in
toTimestamp function on a simple column. |
default Select |
OngoingSelection.toTimestamp(CqlIdentifier columnId)
Shortcut to select the result of the built-in
toTimestamp function. |
static Selector |
Selector.toUnixTimestamp(CqlIdentifier columnId)
Shortcut to select the result of the built-in
toUnixTimestamp function on a simple
column. |
default Select |
OngoingSelection.toUnixTimestamp(CqlIdentifier columnId)
Shortcut to select the result of the built-in
toUnixTimestamp function. |
static Selector |
Selector.ttl(CqlIdentifier columnId)
Shortcut to select the result of the built-in
ttl function, as in SELECT
ttl(c) . |
default Select |
OngoingSelection.ttl(CqlIdentifier columnId)
Shortcut to select the result of the built-in
ttl function, as in SELECT
ttl(c) . |
static Selector |
Selector.writeTime(CqlIdentifier columnId)
Shortcut to select the result of the built-in
writetime function, as in SELECT
writetime(c) . |
default Select |
OngoingSelection.writeTime(CqlIdentifier columnId)
Shortcut to select the result of the built-in
writetime function, as in SELECT
writetime(c) . |
Modifier and Type | Method and Description |
---|---|
default Select |
OngoingSelection.columnsIds(Iterable<CqlIdentifier> columnIds)
Convenience method to select multiple simple columns at once, as in
SELECT a,b,c . |
default Select |
Select.groupByColumnIds(Iterable<CqlIdentifier> columnIds)
Shortcut for
Select.groupBy(Iterable) where all the clauses are simple columns. |
Select |
Select.orderByIds(Map<CqlIdentifier,ClusteringOrder> orderings)
Adds the provided ORDER BY clauses to the query.
|
Modifier and Type | Method and Description |
---|---|
default UpdateWithAssignments |
OngoingAssignment.append(CqlIdentifier columnId,
Term suffix)
Appends to a collection column, as in
SET l=l+? . |
static Assignment |
Assignment.append(CqlIdentifier columnId,
Term suffix)
Appends to a collection column, as in
SET l=l+? . |
default UpdateWithAssignments |
OngoingAssignment.appendListElement(CqlIdentifier columnId,
Term suffix)
Appends a single element to a list column, as in
SET l=l+[?] . |
static Assignment |
Assignment.appendListElement(CqlIdentifier columnId,
Term suffix)
Appends a single element to a list column, as in
SET l=l+[?] . |
default UpdateWithAssignments |
OngoingAssignment.appendMapEntry(CqlIdentifier columnId,
Term key,
Term value)
Appends a single entry to a map column, as in
SET m=m+{?:?} . |
static Assignment |
Assignment.appendMapEntry(CqlIdentifier columnId,
Term key,
Term value)
Appends a single entry to a map column, as in
SET m=m+{?:?} . |
default UpdateWithAssignments |
OngoingAssignment.appendSetElement(CqlIdentifier columnId,
Term suffix)
Appends a single element to a set column, as in
SET s=s+{?} . |
static Assignment |
Assignment.appendSetElement(CqlIdentifier columnId,
Term suffix)
Appends a single element to a set column, as in
SET s=s+{?} . |
default UpdateWithAssignments |
OngoingAssignment.decrement(CqlIdentifier columnId)
Decrements a counter by 1, as in
SET c-=1 . |
static Assignment |
Assignment.decrement(CqlIdentifier columnId)
Decrements a counter by 1, as in
SET c=c-1 . |
default UpdateWithAssignments |
OngoingAssignment.decrement(CqlIdentifier columnId,
Term amount)
Decrements a counter, as in
SET c-=? . |
static Assignment |
Assignment.decrement(CqlIdentifier columnId,
Term amount)
Decrements a counter, as in
SET c=c-? . |
default UpdateWithAssignments |
OngoingAssignment.increment(CqlIdentifier columnId)
Increments a counter by 1, as in
SET c+=1 . |
static Assignment |
Assignment.increment(CqlIdentifier columnId)
Increments a counter by 1, as in
SET c=c+1 . |
default UpdateWithAssignments |
OngoingAssignment.increment(CqlIdentifier columnId,
Term amount)
Increments a counter, as in
SET c+=? . |
static Assignment |
Assignment.increment(CqlIdentifier columnId,
Term amount)
Increments a counter, as in
SET c=c+? . |
default UpdateWithAssignments |
OngoingAssignment.prepend(CqlIdentifier columnId,
Term prefix)
Prepends to a collection column, as in
SET l=[1,2,3]+l . |
static Assignment |
Assignment.prepend(CqlIdentifier columnId,
Term prefix)
Prepends to a collection column, as in
SET l=[1,2,3]+l . |
default UpdateWithAssignments |
OngoingAssignment.prependListElement(CqlIdentifier columnId,
Term suffix)
Prepends a single element to a list column, as in
SET l=[?]+l . |
static Assignment |
Assignment.prependListElement(CqlIdentifier columnId,
Term suffix)
Prepends a single element to a list column, as in
SET l=[?]+l . |
default UpdateWithAssignments |
OngoingAssignment.prependMapEntry(CqlIdentifier columnId,
Term key,
Term value)
Prepends a single entry to a map column, as in
SET m={?:?}+m . |
static Assignment |
Assignment.prependMapEntry(CqlIdentifier columnId,
Term key,
Term value)
Prepends a single entry to a map column, as in
SET m={?:?}+m . |
default UpdateWithAssignments |
OngoingAssignment.prependSetElement(CqlIdentifier columnId,
Term suffix)
Prepends a single element to a set column, as in
SET s={?}+s . |
static Assignment |
Assignment.prependSetElement(CqlIdentifier columnId,
Term suffix)
Prepends a single element to a set column, as in
SET s={?}+s . |
default UpdateWithAssignments |
OngoingAssignment.remove(CqlIdentifier columnId,
Term collectionToRemove)
Removes elements from a collection, as in
SET l=l-[1,2,3] . |
static Assignment |
Assignment.remove(CqlIdentifier columnId,
Term collectionToRemove)
Removes elements from a collection, as in
SET l=l-[1,2,3] . |
default UpdateWithAssignments |
OngoingAssignment.removeListElement(CqlIdentifier columnId,
Term suffix)
Removes a single element to a list column, as in
SET l=l-[?] . |
static Assignment |
Assignment.removeListElement(CqlIdentifier columnId,
Term suffix)
Removes a single element from a list column, as in
SET l=l-[?] . |
default UpdateWithAssignments |
OngoingAssignment.removeMapEntry(CqlIdentifier columnId,
Term key,
Term value)
Removes a single entry to a map column, as in
SET m=m-{?:?} . |
static Assignment |
Assignment.removeMapEntry(CqlIdentifier columnId,
Term key,
Term value)
Removes a single entry from a map column, as in
SET m=m-{?:?} . |
default UpdateWithAssignments |
OngoingAssignment.removeSetElement(CqlIdentifier columnId,
Term suffix)
Removes a single element to a set column, as in
SET s=s-{?} . |
static Assignment |
Assignment.removeSetElement(CqlIdentifier columnId,
Term suffix)
Removes a single element from a set column, as in
SET s=s-{?} . |
default UpdateWithAssignments |
OngoingAssignment.setColumn(CqlIdentifier columnId,
Term value)
Assigns a value to a column, as in
SET c=1 . |
static Assignment |
Assignment.setColumn(CqlIdentifier columnId,
Term value)
Assigns a value to a column, as in
SET c=? . |
default UpdateWithAssignments |
OngoingAssignment.setField(CqlIdentifier columnId,
CqlIdentifier fieldId,
Term value)
Assigns a value to a field of a UDT, as in
SET address.zip=? . |
static Assignment |
Assignment.setField(CqlIdentifier columnId,
CqlIdentifier fieldId,
Term value)
Assigns a value to a field of a UDT, as in
SET address.zip=? . |
default UpdateWithAssignments |
OngoingAssignment.setListValue(CqlIdentifier columnId,
Term index,
Term value)
Assigns a value to an index in a list column, as in
SET list[?]=? . |
static Assignment |
Assignment.setListValue(CqlIdentifier columnId,
Term index,
Term value)
Assigns a value to an index in a list column, as in
SET list[?]=? . |
default UpdateWithAssignments |
OngoingAssignment.setMapValue(CqlIdentifier columnId,
Term key,
Term value)
Assigns a value to an entry in a map column, as in
SET map[?]=? . |
static Assignment |
Assignment.setMapValue(CqlIdentifier columnId,
Term key,
Term value)
Assigns a value to an entry in a map column, as in
SET map[?]=? . |
Copyright © 2017–2021. All rights reserved.