public class SelectExpression
extends java.lang.Object
SELECT
statement.
See: doc/cql/CQL.html#SpecifyingColumnsModifier and Type | Field and Description |
---|---|
static int |
MAX_COLUMNS_DEFAULT |
Constructor and Description |
---|
SelectExpression(Term first,
int count,
boolean reverse,
boolean firstSet)
Create a new SelectExpression for a list of columns.
|
SelectExpression(Term start,
Term finish,
int count,
boolean reverse,
boolean wildcard,
boolean firstSet)
Create a new SelectExpression for a range (slice) of columns.
|
Modifier and Type | Method and Description |
---|---|
void |
and(Term addTerm)
Add an additional column name to a SelectExpression.
|
java.util.List<Term> |
getColumns() |
int |
getColumnsLimit() |
Term |
getFinish() |
Term |
getStart() |
boolean |
hasFirstSet() |
boolean |
isColumnList() |
boolean |
isColumnRange() |
boolean |
isColumnsReversed() |
boolean |
isWildcard() |
void |
setColumnsLimit(int limit) |
void |
setColumnsReversed(boolean reversed) |
java.lang.String |
toString() |
public static final int MAX_COLUMNS_DEFAULT
public SelectExpression(Term start, Term finish, int count, boolean reverse, boolean wildcard, boolean firstSet)
start
- the starting column namefinish
- the finishing column namecount
- the number of columns to limit the results toreverse
- true to reverse column orderwildcard
- determines weather this statement is wildcardfirstSet
- determines weather "FIRST" keyword was setpublic SelectExpression(Term first, int count, boolean reverse, boolean firstSet)
first
- the first (possibly only) column name to select on.count
- the number of columns to limit the results onreverse
- true to reverse column orderfirstSet
- determines weather "FIRST" keyword was setpublic void and(Term addTerm)
addTerm
- public boolean isColumnRange()
public boolean isColumnList()
public int getColumnsLimit()
public boolean isColumnsReversed()
public void setColumnsReversed(boolean reversed)
public void setColumnsLimit(int limit)
public boolean hasFirstSet()
public Term getStart()
public Term getFinish()
public java.util.List<Term> getColumns()
public boolean isWildcard()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015 The Apache Software Foundation