public abstract class AbstractSelectWhere<T extends AbstractSelectWhere<T,ENTITY>,ENTITY> extends AbstractOptionsForSelect<T> implements SelectAction<ENTITY>, StatementProvider, TypedMapAware
| Modifier and Type | Field and Description |
|---|---|
protected CassandraOptions |
cassandraOptions |
protected com.datastax.driver.core.querybuilder.Select.Where |
where |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSelectWhere(com.datastax.driver.core.querybuilder.Select.Where where,
CassandraOptions cassandraOptions) |
| Modifier and Type | Method and Description |
|---|---|
BoundStatement |
generateAndGetBoundStatement()
Utility API *
|
List<Object> |
getBoundValues()
Return the provided raw (not yet encoded) bound values
OR extract the raw bound values from a given entity
|
protected abstract List<Object> |
getBoundValuesInternal() |
List<Object> |
getEncodedBoundValues()
Return the provided encoded bound values
OR extract the raw bound values from a given entity
and encode them
|
protected abstract List<Object> |
getEncodedValuesInternal() |
protected abstract Class<ENTITY> |
getEntityClass() |
protected StatementWrapper |
getInternalBoundStatementWrapper() |
CompletableFuture<info.archinnov.achilles.type.tuples.Tuple2<List<ENTITY>,ExecutionInfo>> |
getListAsyncWithStats()
Execute the SELECT action asynchronously
and return a
CompletableFuture of
a list of entity instances with ExecutionInfo |
protected abstract AbstractEntityProperty<ENTITY> |
getMetaInternal() |
protected abstract RuntimeEngine |
getRte() |
String |
getStatementAsString()
Generate the statement as plain text
|
CompletableFuture<info.archinnov.achilles.type.tuples.Tuple2<info.archinnov.achilles.type.TypedMap,ExecutionInfo>> |
getTypedMapAsyncWithStats()
|
CompletableFuture<info.archinnov.achilles.type.tuples.Tuple2<List<info.archinnov.achilles.type.TypedMap>,ExecutionInfo>> |
getTypedMapsAsyncWithStats()
TypedMap API *
|
Iterator<ENTITY> |
iterator()
Execute the SELECT action
and return an
Iterator<ENTITY> of entity instances
WARNING: this method performs a blocking call to the underlying async query |
info.archinnov.achilles.type.tuples.Tuple2<Iterator<ENTITY>,ExecutionInfo> |
iteratorWithExecutionInfo()
Execute the SELECT action
and return a
Tuple2<Iterator<ENTITY>, ExecutionInfo>
WARNING: this method performs a blocking call to the underlying async query |
Iterator<info.archinnov.achilles.type.TypedMap> |
typedMapIterator()
Execute the SELECT action and return an
Iterator<TypedMap>
WARNING: this method performs a blocking call to the underlying async query |
info.archinnov.achilles.type.tuples.Tuple2<Iterator<info.archinnov.achilles.type.TypedMap>,ExecutionInfo> |
typedMapIteratorWithExecutionInfo()
Execute the SELECT action and return a
Tuple2<Iterator<TypedMap>, ExecutionInfo>
WARNING: this method performs a blocking call to the underlying async query |
getOptions, getThis, isIdempotent, isIdempotent, withConsistencyLevel, withDMLResultsDisplaySize, withFetchSize, withOptionalConsistencyLevel, withOptionalOutgoingPayload, withOptionalPagingState, withOptionalPagingStateString, withOptionalRetryPolicy, withOptionalSerialConsistencyLevel, withOutgoingPayload, withPagingState, withPagingState, withReadTimeoutInMillis, withResultSetAsyncListener, withResultSetAsyncListeners, withRetryPolicy, withRowAsyncListener, withRowAsyncListeners, withSerialConsistencyLevel, withTracing, withTracingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetList, getListAsync, getListWithStats, getOne, getOneAsync, getOneAsyncWithStats, getOneWithStatsgetTypedMap, getTypedMapAsync, getTypedMaps, getTypedMapsAsync, getTypedMapsWithStats, getTypedMapWithStats, mapResultSetToTypedMaps, mapRowToTypedMapextractCauseFromExecutionExceptionprotected final com.datastax.driver.core.querybuilder.Select.Where where
protected final CassandraOptions cassandraOptions
protected AbstractSelectWhere(com.datastax.driver.core.querybuilder.Select.Where where, CassandraOptions cassandraOptions)
protected abstract AbstractEntityProperty<ENTITY> getMetaInternal()
protected abstract RuntimeEngine getRte()
public Iterator<ENTITY> iterator()
SelectActionIterator<ENTITY> of entity instances
iterator in interface SelectAction<ENTITY>public info.archinnov.achilles.type.tuples.Tuple2<Iterator<ENTITY>,ExecutionInfo> iteratorWithExecutionInfo()
SelectActionTuple2<Iterator<ENTITY>, ExecutionInfo>
iteratorWithExecutionInfo in interface SelectAction<ENTITY>public CompletableFuture<info.archinnov.achilles.type.tuples.Tuple2<List<ENTITY>,ExecutionInfo>> getListAsyncWithStats()
SelectActionCompletableFuture of
a list of entity instances with ExecutionInfogetListAsyncWithStats in interface SelectAction<ENTITY>public CompletableFuture<info.archinnov.achilles.type.tuples.Tuple2<List<info.archinnov.achilles.type.TypedMap>,ExecutionInfo>> getTypedMapsAsyncWithStats()
getTypedMapsAsyncWithStats in interface TypedMapAwarepublic CompletableFuture<info.archinnov.achilles.type.tuples.Tuple2<info.archinnov.achilles.type.TypedMap,ExecutionInfo>> getTypedMapAsyncWithStats()
TypedMapAwaregetTypedMapAsyncWithStats in interface TypedMapAwarepublic Iterator<info.archinnov.achilles.type.TypedMap> typedMapIterator()
TypedMapAwareIterator<TypedMap>
typedMapIterator in interface TypedMapAwarepublic info.archinnov.achilles.type.tuples.Tuple2<Iterator<info.archinnov.achilles.type.TypedMap>,ExecutionInfo> typedMapIteratorWithExecutionInfo()
TypedMapAwareTuple2<Iterator<TypedMap>, ExecutionInfo>
typedMapIteratorWithExecutionInfo in interface TypedMapAwarepublic BoundStatement generateAndGetBoundStatement()
generateAndGetBoundStatement in interface StatementProviderpublic String getStatementAsString()
StatementProvidergetStatementAsString in interface StatementProviderpublic List<Object> getBoundValues()
StatementProvidergetBoundValues in interface StatementProviderpublic List<Object> getEncodedBoundValues()
StatementProvidergetEncodedBoundValues in interface StatementProviderprotected StatementWrapper getInternalBoundStatementWrapper()
Copyright © 2012-2021. All Rights Reserved.