public interface BoundStatement extends BatchableStatement<BoundStatement>, Bindable<BoundStatement>
The default implementation returned by the driver is immutable and thread-safe. All mutating methods return a new instance.
ASYNC, NO_DEFAULT_TIMESTAMP, NO_NOW_IN_SECONDS, SYNC| Modifier and Type | Method and Description |
|---|---|
default int |
computeSizeInBytes(DriverContext context)
Calculates the approximate size in bytes that the statement will have when encoded.
|
default CqlIdentifier |
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). |
PreparedStatement |
getPreparedStatement()
The prepared statement that was used to create this statement.
|
List<ByteBuffer> |
getValues()
The values to bind, in their serialized form.
|
copy, disableTracing, enableTracing, getConsistencyLevel, getDefaultTimestamp, getFetchSize, getNowInSeconds, getPageSize, getPagingState, getQueryTimestamp, getSerialConsistencyLevel, isTracing, setConsistencyLevel, setCustomPayload, setDefaultTimestamp, setExecutionProfile, setExecutionProfileName, setFetchSize, setIdempotent, setNode, setNowInSeconds, setPageSize, setPagingState, setPagingState, setPagingState, setQueryTimestamp, setRoutingKey, setRoutingKey, setRoutingKeyspace, setRoutingKeyspace, setRoutingToken, setSerialConsistencyLevel, setTimeout, setTracinggetCustomPayload, getExecutionProfile, getExecutionProfileName, getNode, getRoutingKey, getRoutingKeyspace, getRoutingToken, getTimeout, isIdempotentisSet, isSet, isSet, unset, unset, unsetget, get, get, getBigDecimal, getBigInteger, getBool, getBoolean, getByte, getByteBuffer, getBytesUnsafe, getCqlDuration, getDouble, getFloat, getInetAddress, getInstant, getInt, getList, getLocalDate, getLocalTime, getLong, getMap, getObject, getSet, getShort, getString, getToken, getTupleValue, getUdtValue, getUuid, isNullget, get, get, getBigDecimal, getBigInteger, getBool, getBoolean, getByte, getByteBuffer, getBytesUnsafe, getCqlDuration, getDouble, getFloat, getInetAddress, getInstant, getInt, getList, getLocalDate, getLocalTime, getLong, getMap, getObject, getSet, getShort, getString, getToken, getTupleValue, getUdtValue, getUuid, isNullget, get, get, getBigDecimal, getBigInteger, getBool, getBoolean, getByte, getByteBuffer, getBytesUnsafe, getCqlDuration, getDouble, getFloat, getInetAddress, getInstant, getInt, getList, getLocalDate, getLocalTime, getLong, getMap, getObject, getSet, getShort, getString, getToken, getTupleValue, getUdtValue, getUuid, isNullgetType, set, set, set, setBigDecimal, setBigInteger, setBool, setBoolean, setByte, setByteBuffer, setBytesUnsafe, setCqlDuration, setDouble, setFloat, setInetAddress, setInstant, setInt, setList, setLocalDate, setLocalTime, setLong, setMap, setSet, setShort, setString, setToken, setToNull, setTupleValue, setUdtValue, setUuidallIndicesOf, firstIndexOfgetType, set, set, set, setBigDecimal, setBigInteger, setBool, setBoolean, setByte, setByteBuffer, setBytesUnsafe, setCqlDuration, setDouble, setFloat, setInetAddress, setInstant, setInt, setList, setLocalDate, setLocalTime, setLong, setMap, setSet, setShort, setString, setToken, setToNull, setTupleValue, setUdtValue, setUuidset, set, set, setBigDecimal, setBigInteger, setBool, setBoolean, setByte, setByteBuffer, setBytesUnsafe, setCqlDuration, setDouble, setFloat, setInetAddress, setInstant, setInt, setList, setLocalDate, setLocalTime, setLong, setMap, setSet, setShort, setString, setToken, setToNull, setTupleValue, setUdtValue, setUuidallIndicesOf, firstIndexOfgetType, sizecodecRegistry, protocolVersion@NonNull PreparedStatement getPreparedStatement()
@NonNull List<ByteBuffer> getValues()
@Nullable default CqlIdentifier getKeyspace()
null (bound statements can't have a per-request keyspace, they always
inherit the one of the statement that was initially prepared).getKeyspace in interface Requestdefault int computeSizeInBytes(@NonNull
DriverContext context)
StatementThe size might be over-estimated by a few bytes due to global options that may be defined on
a Session but not explicitly set on the statement itself.
The result of this method is not cached, calling it will cause some encoding to be done in order to determine some of the statement's attributes sizes. Therefore, use this method sparingly in order to avoid unnecessary computation.
computeSizeInBytes in interface Statement<BoundStatement>Copyright © 2017–2020. All rights reserved.