public class TypedQuery<ENTITY> extends Object implements SelectAction<ENTITY>, RawAndTypeMapDefaultImpl
| Constructor and Description |
|---|
TypedQuery(RuntimeEngine rte,
AbstractEntityProperty<ENTITY> meta,
BoundStatement boundStatement,
Object[] encodedBoundValues) |
| Modifier and Type | Method and Description |
|---|---|
BoundStatement |
boundStatement() |
Object[] |
encodedBoundValues() |
CompletableFuture<info.archinnov.achilles.type.tuples.Tuple2<List<ENTITY>,ExecutionInfo>> |
getListAsyncWithStats()
Execute the typed query asynchronously and return a list of entities with execution info
|
Iterator<ENTITY> |
iterator()
Execute the typed query and return an iterator of entities
|
info.archinnov.achilles.type.tuples.Tuple2<Iterator<ENTITY>,ExecutionInfo> |
iteratorWithExecutionInfo()
Execute the typed query and return an iterator of entities
|
AbstractEntityProperty<?> |
meta() |
CassandraOptions |
options() |
RuntimeEngine |
runtimeEngine() |
TypedQuery<ENTITY> |
withDMLResultsDisplaySize(int DMLResultsDisplaySize)
When DEBUG log is enabled, restrict the Results Display to maximum DMLResultsDisplaySize rows.
|
TypedQuery<ENTITY> |
withResultSetAsyncListener(java.util.function.Function<ResultSet,ResultSet> resultSetAsyncListener)
Add the given async listener on the
ResultSet object. |
TypedQuery<ENTITY> |
withResultSetAsyncListeners(List<java.util.function.Function<ResultSet,ResultSet>> resultSetAsyncListeners)
Add the given list of async listeners on the
ResultSet object. |
TypedQuery<ENTITY> |
withRowAsyncListener(java.util.function.Function<Row,Row> rowAsyncListener)
Add the given async listener on the
Row object. |
TypedQuery<ENTITY> |
withRowAsyncListeners(List<java.util.function.Function<Row,Row>> rowAsyncListeners)
Add the given list of async listeners on the
Row object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetList, getListAsync, getListWithStats, getOne, getOneAsync, getOneAsyncWithStats, getOneWithStatsgetTypedMapAsyncWithStats, getTypedMapsAsyncWithStats, typedMapIterator, typedMapIteratorWithExecutionInfogetTypedMap, getTypedMapAsync, getTypedMaps, getTypedMapsAsync, getTypedMapsWithStats, getTypedMapWithStats, mapResultSetToTypedMaps, mapRowToTypedMapextractCauseFromExecutionExceptiongetOperationTypepublic TypedQuery(RuntimeEngine rte, AbstractEntityProperty<ENTITY> meta, BoundStatement boundStatement, Object[] encodedBoundValues)
public TypedQuery<ENTITY> 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 TypedQuery<ENTITY> 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 TypedQuery<ENTITY> 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 TypedQuery<ENTITY> 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 TypedQuery<ENTITY> withDMLResultsDisplaySize(int DMLResultsDisplaySize)
DMLResultsDisplaySize - the maximum number of returned rows to be displayedpublic Iterator<ENTITY> iterator()
iterator in interface SelectAction<ENTITY>public info.archinnov.achilles.type.tuples.Tuple2<Iterator<ENTITY>,ExecutionInfo> iteratorWithExecutionInfo()
iteratorWithExecutionInfo in interface SelectAction<ENTITY>public CompletableFuture<info.archinnov.achilles.type.tuples.Tuple2<List<ENTITY>,ExecutionInfo>> getListAsyncWithStats()
getListAsyncWithStats in interface SelectAction<ENTITY>public RuntimeEngine runtimeEngine()
runtimeEngine in interface RawAndTypeMapDefaultImplpublic AbstractEntityProperty<?> meta()
meta in interface RawAndTypeMapDefaultImplpublic BoundStatement boundStatement()
boundStatement in interface RawAndTypeMapDefaultImplpublic Object[] encodedBoundValues()
encodedBoundValues in interface RawAndTypeMapDefaultImplpublic CassandraOptions options()
options in interface RawAndTypeMapDefaultImplCopyright © 2012-2021. All Rights Reserved.