public abstract class AbstractOptionsForSelect<T extends AbstractOptionsForSelect<T>> extends Object
| Constructor and Description |
|---|
AbstractOptionsForSelect() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract CassandraOptions |
getOptions() |
protected abstract T |
getThis() |
T |
isIdempotent()
Hint the current statement as idempotent.
|
T |
isIdempotent(boolean idempotent)
Give a hint whether the current statement is idempotent.
|
T |
withConsistencyLevel(ConsistencyLevel consistencyLevel)
Set the given consistency level on the generated statement
|
T |
withDMLResultsDisplaySize(int DMLResultsDisplaySize)
When DEBUG log is enabled, restrict the Results Display to maximum DMLResultsDisplaySize rows.
|
T |
withFetchSize(int fetchSize)
Set the given fetch size on the generated statement
|
T |
withOptionalConsistencyLevel(Optional<ConsistencyLevel> consistencyLevel)
Set the given consistency level on the generated statement IF NOT NULL
|
T |
withOptionalOutgoingPayload(Optional<Map<String,ByteBuffer>> outgoingPayload)
Set the given outgoing payload map on the generated statement IF NOT NULL
|
T |
withOptionalPagingState(Optional<PagingState> pagingState)
Set the given paging state on the generated statement IF NOT NULL
|
T |
withOptionalPagingStateString(Optional<String> pagingStateString)
Set the given paging state string on the generated statement IF NOT NULL
|
T |
withOptionalRetryPolicy(Optional<com.datastax.driver.core.policies.RetryPolicy> retryPolicy)
Set the given retry policy
|
T |
withOptionalSerialConsistencyLevel(Optional<ConsistencyLevel> serialConsistencyLevel)
Set the given serial consistency level on the generated statement IF NOT NULL
|
T |
withOutgoingPayload(Map<String,ByteBuffer> outgoingPayload)
Set the given outgoing payload map on the generated statement
|
T |
withPagingState(PagingState pagingState)
Set the given paging state on the generated statement
|
T |
withPagingState(String pagingState)
Set the given paging state string on the generated statement
|
T |
withReadTimeoutInMillis(Integer readTimeoutInMillis)
Set read timeout in millisecs.
|
T |
withResultSetAsyncListener(java.util.function.Function<ResultSet,ResultSet> resultSetAsyncListener)
Add the given async listener on the
ResultSet object. |
T |
withResultSetAsyncListeners(List<java.util.function.Function<ResultSet,ResultSet>> resultSetAsyncListeners)
Add the given list of async listeners on the
ResultSet object. |
T |
withRetryPolicy(com.datastax.driver.core.policies.RetryPolicy retryPolicy)
Set the given retry policy
|
T |
withRowAsyncListener(java.util.function.Function<Row,Row> rowAsyncListener)
Add the given async listener on the
Row object. |
T |
withRowAsyncListeners(List<java.util.function.Function<Row,Row>> rowAsyncListeners)
Add the given list of async listeners on the
Row object. |
T |
withSerialConsistencyLevel(ConsistencyLevel serialConsistencyLevel)
Set the given serial consistency level on the generated statement
|
T |
withTracing()
Enable query tracing.
|
T |
withTracing(boolean tracing)
Enable query tracing.
|
protected abstract T getThis()
protected abstract CassandraOptions getOptions()
public T withConsistencyLevel(ConsistencyLevel consistencyLevel)
NullPointerException - if consistencyLevel is nullpublic T withOptionalConsistencyLevel(Optional<ConsistencyLevel> consistencyLevel)
public T withSerialConsistencyLevel(ConsistencyLevel serialConsistencyLevel)
NullPointerException - if serialConsistencyLevel is nullpublic T withOptionalSerialConsistencyLevel(Optional<ConsistencyLevel> serialConsistencyLevel)
public T withFetchSize(int fetchSize)
public T isIdempotent()
public T isIdempotent(boolean idempotent)
public T withOutgoingPayload(Map<String,ByteBuffer> outgoingPayload)
NullPointerException - if outgoingPayload is nullpublic T withOptionalOutgoingPayload(Optional<Map<String,ByteBuffer>> outgoingPayload)
public T withPagingState(PagingState pagingState)
NullPointerException - if pagingState is nullpublic T withPagingState(String pagingState)
NullPointerException - if paging state string is nullpublic T withOptionalPagingState(Optional<PagingState> pagingState)
public T withOptionalPagingStateString(Optional<String> pagingStateString)
public T withRetryPolicy(com.datastax.driver.core.policies.RetryPolicy retryPolicy)
NullPointerException - if value is nullpublic T withOptionalRetryPolicy(Optional<com.datastax.driver.core.policies.RetryPolicy> retryPolicy)
public T withResultSetAsyncListeners(List<java.util.function.Function<ResultSet,ResultSet>> resultSetAsyncListeners)
ResultSet object.
Example of usage:
.withResultSetAsyncListeners(Arrays.asList(resultSet -> {
//Do something with the resultSet object here
}))
Remark: it is not allowed to consume the ResultSet values. It is strongly advised to read only meta datapublic T withResultSetAsyncListener(java.util.function.Function<ResultSet,ResultSet> resultSetAsyncListener)
ResultSet object.
Example of usage:
.withResultSetAsyncListener(resultSet -> {
//Do something with the resultSet object here
})
Remark: it is not allowed to consume the ResultSet values. It is strongly advised to read only meta datapublic T withRowAsyncListeners(List<java.util.function.Function<Row,Row>> rowAsyncListeners)
Row object.
Example of usage:
.withRowAsyncListeners(Arrays.asList(row -> {
//Do something with the row object here
}))
Remark: You can inspect and read values from the row objectpublic T withRowAsyncListener(java.util.function.Function<Row,Row> rowAsyncListener)
Row object.
Example of usage:
.withRowAsyncListener(row -> {
//Do something with the row object here
})
Remark: You can inspect and read values from the row objectpublic T withTracing(boolean tracing)
public T withTracing()
public T withReadTimeoutInMillis(Integer readTimeoutInMillis)
readTimeoutInMillis - read timeout in millispublic T withDMLResultsDisplaySize(int DMLResultsDisplaySize)
DMLResultsDisplaySize - the maximum number of returned rows to be displayedCopyright © 2012-2021. All Rights Reserved.