@NotThreadSafe public abstract class StatementBuilder<SelfT extends StatementBuilder<SelfT,StatementT>,StatementT extends Statement<StatementT>> extends Object
Modifier and Type | Field and Description |
---|---|
protected ConsistencyLevel |
consistencyLevel |
protected DriverExecutionProfile |
executionProfile |
protected String |
executionProfileName |
protected Boolean |
idempotent |
protected Node |
node |
protected int |
pageSize |
protected ByteBuffer |
pagingState |
protected ByteBuffer |
routingKey |
protected CqlIdentifier |
routingKeyspace |
protected Token |
routingToken |
protected ConsistencyLevel |
serialConsistencyLevel |
protected Duration |
timeout |
protected long |
timestamp |
protected boolean |
tracing |
Modifier | Constructor and Description |
---|---|
protected |
StatementBuilder() |
protected |
StatementBuilder(StatementT template) |
Modifier and Type | Method and Description |
---|---|
SelfT |
addCustomPayload(String key,
ByteBuffer value) |
abstract StatementT |
build() |
protected Map<String,ByteBuffer> |
buildCustomPayload() |
SelfT |
clearCustomPayload() |
SelfT |
withConsistencyLevel(ConsistencyLevel consistencyLevel) |
SelfT |
withExecutionProfile(DriverExecutionProfile executionProfile) |
SelfT |
withExecutionProfileName(String executionProfileName) |
SelfT |
withIdempotence(Boolean idempotent) |
SelfT |
withNode(Node node) |
SelfT |
withPageSize(int pageSize) |
SelfT |
withPagingState(ByteBuffer pagingState) |
SelfT |
withRoutingKey(ByteBuffer routingKey) |
SelfT |
withRoutingKeyspace(CqlIdentifier routingKeyspace) |
SelfT |
withRoutingKeyspace(String routingKeyspaceName)
|
SelfT |
withRoutingToken(Token routingToken) |
SelfT |
withSerialConsistencyLevel(ConsistencyLevel serialConsistencyLevel) |
SelfT |
withTimeout(Duration timeout) |
SelfT |
withTimestamp(long timestamp) |
SelfT |
withTracing() |
@Nullable protected String executionProfileName
@Nullable protected DriverExecutionProfile executionProfile
@Nullable protected CqlIdentifier routingKeyspace
@Nullable protected ByteBuffer routingKey
@Nullable protected Token routingToken
@Nullable protected Boolean idempotent
protected boolean tracing
protected long timestamp
@Nullable protected ByteBuffer pagingState
protected int pageSize
@Nullable protected ConsistencyLevel consistencyLevel
@Nullable protected ConsistencyLevel serialConsistencyLevel
@Nullable protected Duration timeout
@Nullable protected Node node
protected StatementBuilder()
protected StatementBuilder(StatementT template)
@NonNull public SelfT withExecutionProfileName(@Nullable String executionProfileName)
@NonNull public SelfT withExecutionProfile(@Nullable DriverExecutionProfile executionProfile)
@NonNull public SelfT withRoutingKeyspace(@Nullable CqlIdentifier routingKeyspace)
@NonNull public SelfT withRoutingKey(@Nullable ByteBuffer routingKey)
Statement.setRoutingKey(ByteBuffer)
@NonNull public SelfT withRoutingToken(@Nullable Token routingToken)
Statement.setRoutingToken(Token)
@NonNull public SelfT addCustomPayload(@NonNull String key, @Nullable ByteBuffer value)
Statement.setCustomPayload(Map)
@NonNull public SelfT clearCustomPayload()
Statement.setCustomPayload(Map)
@NonNull public SelfT withIdempotence(@Nullable Boolean idempotent)
Statement.setIdempotent(Boolean)
@NonNull public SelfT withTracing()
Statement.setTracing(boolean)
@NonNull public SelfT withTimestamp(long timestamp)
Statement.setTimestamp(long)
@NonNull public SelfT withPagingState(@Nullable ByteBuffer pagingState)
Statement.setPagingState(ByteBuffer)
@NonNull public SelfT withPageSize(int pageSize)
Statement.setPageSize(int)
@NonNull public SelfT withConsistencyLevel(@Nullable ConsistencyLevel consistencyLevel)
@NonNull public SelfT withSerialConsistencyLevel(@Nullable ConsistencyLevel serialConsistencyLevel)
@NonNull public SelfT withTimeout(@Nullable Duration timeout)
Statement.setTimeout(Duration)
public SelfT withNode(@Nullable Node node)
Statement.setNode(Node)
@NonNull protected Map<String,ByteBuffer> buildCustomPayload()
@NonNull public abstract StatementT build()
Copyright © 2017–2018. All rights reserved.