org.apache.cassandra.cql
Class WhereClause
java.lang.Object
org.apache.cassandra.cql.WhereClause
public class WhereClause
- extends java.lang.Object
WhereClauses encapsulate all of the predicates of a SELECT query.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WhereClause
public WhereClause(Relation firstRelation)
- Create a new WhereClause with the first parsed relation.
- Parameters:
firstRelation
- key or column relation
WhereClause
public WhereClause()
and
public void and(Relation relation)
- Add an additional relation to this WHERE clause.
- Parameters:
relation
- the relation to add.
getColumnRelations
public java.util.List<Relation> getColumnRelations()
isKeyRange
public boolean isKeyRange()
isKeyList
public boolean isKeyList()
getStartKey
public Term getStartKey()
getFinishKey
public Term getFinishKey()
getKeys
public java.util.List<Term> getKeys()
includeStartKey
public boolean includeStartKey()
includeFinishKey
public boolean includeFinishKey()
Copyright © 2011 The Apache Software Foundation