org.apache.cassandra.cql
Class SelectExpression
java.lang.Object
org.apache.cassandra.cql.SelectExpression
public class SelectExpression
- extends java.lang.Object
Select expressions are analogous to the projection in a SQL query. They
determine which columns will appear in the result set. SelectExpression
instances encapsulate a parsed expression from a SELECT
statement.
See: doc/cql/CQL.html#SpecifyingColumns
Constructor Summary |
SelectExpression(Term first,
int count,
boolean reverse)
Create a new SelectExpression for a list of columns. |
SelectExpression(Term start,
Term finish,
int count,
boolean reverse,
boolean wildcard)
Create a new SelectExpression for a range (slice) of columns. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_COLUMNS_DEFAULT
public static final int MAX_COLUMNS_DEFAULT
- See Also:
- Constant Field Values
SelectExpression
public SelectExpression(Term start,
Term finish,
int count,
boolean reverse,
boolean wildcard)
- Create a new SelectExpression for a range (slice) of columns.
- Parameters:
start
- the starting column namefinish
- the finishing column namecount
- the number of columns to limit the results toreverse
- true to reverse column order
SelectExpression
public SelectExpression(Term first,
int count,
boolean reverse)
- Create a new SelectExpression for a list of columns.
- Parameters:
first
- the first (possibly only) column name to select on.count
- the number of columns to limit the results onreverse
- true to reverse column order
and
public void and(Term addTerm)
- Add an additional column name to a SelectExpression.
- Parameters:
addTerm
-
isColumnRange
public boolean isColumnRange()
isColumnList
public boolean isColumnList()
getColumnsLimit
public int getColumnsLimit()
isColumnsReversed
public boolean isColumnsReversed()
setColumnsReversed
public void setColumnsReversed(boolean reversed)
setColumnsLimit
public void setColumnsLimit(int limit)
getStart
public Term getStart()
getFinish
public Term getFinish()
getColumns
public java.util.List<Term> getColumns()
isWildcard
public boolean isWildcard()
Copyright © 2011 The Apache Software Foundation