T - The type of POJO associated with this statement.public class SelectImpl<T> extends StatementImpl<ObjectSet<T>,ObjectSetFuture<T>,T> implements Select<T>
SelectImpl class extends the functionality of Cassandra's
Select class to provide support
for POJOs.| Modifier and Type | Class and Description |
|---|---|
static class |
SelectImpl.BuilderImpl<T>
The
BuilderImpl class defines an in-construction SELECT statement. |
static class |
SelectImpl.SelectionImpl<T>
The
SelectionImpl class defines a selection clause for an
in-construction SELECT statement. |
static class |
SelectImpl.TableSelectionImpl<T>
The
TableSelectionImpl class defines a selection clause for an
in-construction SELECT statement. |
static class |
SelectImpl.WhereImpl<T>
The
WhereImpl class defines a WHERE clause for a SELECT
statement. |
Select.Builder<T>, Select.Selection<T>, Select.SelectionOrAlias<T>, Select.TableSelection<T>, Select.Where<T>| Modifier and Type | Field and Description |
|---|---|
protected List<Object> |
columnNames
List of columns added.
|
protected boolean |
countOrAllSelected
Flag to keep track of whether or not the special COUNT() or * has been
selected.
|
bridge, CI_PREFIX, idempotent, isCounterOp, mgr, MK_PREFIX, resultClass, simpleSize, UDT_C_PREFIX| Modifier and Type | Method and Description |
|---|---|
Select<T> |
allowFiltering() |
protected StringBuilder |
buildQueryString()
Builds the query string.
|
protected StringBuilder[] |
buildQueryStrings()
Builds the query strings (one per underlying statement) to be collected if
the statement represents some a batch, sequence, or a group statement.
|
protected void |
clearKeyspace()
Clears the keyspace so it be recomputed later.
|
ObjectSetFuture<T> |
executeAsync0()
Executes this statement asynchronously.
|
protected com.datastax.driver.core.ResultSetFuture |
executeAsyncRaw0()
Executes the provided statement asynchronously and returned a raw result set.
|
String |
getKeyspace()
Gets the keyspace name associated with this context.
|
Select<T> |
limit(int limit) |
Select<T> |
orderBy(Ordering... orderings) |
protected void |
setDirty()
Sets the dirty bit for the cached query string and clear the number of
statements.
|
protected int |
simpleSize()
Gets the number of simple statements in this statement.
|
Select.Where<T> |
where() |
Select.Where<T> |
where(Clause clause) |
appendGroupSubType, appendGroupType, appendOptions, buildStatements, disable, disableErrorTracing, disableTracing, enable, enableErrorTracing, enableErrorTracing, enableTracing, enableTracing, execute, executeAsync, executeAsyncRaw, executeRaw, getClassInfo, getClassInfoImpl, getConsistencyLevel, getContext, getDefaultTimestamp, getFetchSize, getObject, getObjectClass, getPOJOContext, getQueryString, getReadTimeoutMillis, getRetryPolicy, getSerialConsistencyLevel, getUserData, init, init, isCounterOp, isDirty, isEnabled, isErrorTracing, isIdempotent, isTracing, setConsistencyLevel, setCounterOp, setDefaultTimestamp, setDirty, setFetchSize, setIdempotent, setReadTimeoutMillis, setRetryPolicy, setSerialConsistencyLevel, setUserData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetClassInfo, getObjectClassdisable, disableErrorTracing, disableTracing, enable, enableErrorTracing, enableErrorTracing, enableTracing, enableTracing, execute, executeAsync, executeAsyncRaw, executeRaw, getConsistencyLevel, getDefaultTimestamp, getFetchSize, getQueryString, getReadTimeoutMillis, getRetryPolicy, getSerialConsistencyLevel, getUserData, isEnabled, isErrorTracing, isIdempotent, isTracing, setConsistencyLevel, setDefaultTimestamp, setFetchSize, setIdempotent, setReadTimeoutMillis, setRetryPolicy, setSerialConsistencyLevel, setUserDataprotected boolean countOrAllSelected
protected StringBuilder[] buildQueryStrings()
buildQueryStrings in class StatementImpl<ObjectSet<T>,ObjectSetFuture<T>,T>null if nothing to batchStatementImpl.buildQueryStrings()protected int simpleSize()
simpleSize in class StatementImpl<ObjectSet<T>,ObjectSetFuture<T>,T>StatementImpl.simpleSize()protected StringBuilder buildQueryString()
buildQueryString in class StatementImpl<ObjectSet<T>,ObjectSetFuture<T>,T>null
if there is no query builtStatementImpl.buildQueryString()protected void clearKeyspace()
clearKeyspace in class StatementImpl<ObjectSet<T>,ObjectSetFuture<T>,T>StatementImpl.clearKeyspace()protected void setDirty()
setDirty in class StatementImpl<ObjectSet<T>,ObjectSetFuture<T>,T>StatementImpl.setDirty()protected com.datastax.driver.core.ResultSetFuture executeAsyncRaw0()
ResultSetFuture.
Note that for queries that doesn't return a result (INSERT, UPDATE and
DELETE), you will need to access the ResultSetFuture (that is call one of
its get method) to make sure the statement was successful.executeAsyncRaw0 in class StatementImpl<ObjectSet<T>,ObjectSetFuture<T>,T>StatementImpl.executeAsyncRaw0()public ObjectSetFuture<T> executeAsync0()
ResultSetFuture.
Note that for queries that doesn't return a result (INSERT, UPDATE and
DELETE), you will need to access the result future (that is call one of
its get method to make sure the statement's execution was successful.executeAsync0 in class StatementImpl<ObjectSet<T>,ObjectSetFuture<T>,T>StatementImpl.executeAsync0()public String getKeyspace()
getKeyspace in interface GenericStatement<ObjectSet<T>,ObjectSetFuture<T>>getKeyspace in class StatementImpl<ObjectSet<T>,ObjectSetFuture<T>,T>null keyspace name associated with this
contextIllegalArgumentException - if unable to compute the keyspace name
based on provided keyspace keysGenericStatement.getKeyspace()public Select.Where<T> where(Clause clause)
where in interface Select<T>Select.where(org.helenus.driver.Clause)public Select.Where<T> where()
where in interface Select<T>Select.where()public Select<T> orderBy(Ordering... orderings)
orderBy in interface Select<T>Select.orderBy(org.helenus.driver.Ordering[])public Select<T> limit(int limit)
limit in interface Select<T>Select.limit(int)public Select<T> allowFiltering()
allowFiltering in interface Select<T>Select.allowFiltering()Copyright (C) 2015-2017 The Helenus Driver Project Authors.