org.apache.cassandra.cql
Class WhereClause

java.lang.Object
  extended by org.apache.cassandra.cql.WhereClause

public class WhereClause
extends java.lang.Object

WhereClauses encapsulate all of the predicates of a SELECT query.


Constructor Summary
WhereClause()
           
WhereClause(Relation firstRelation)
          Create a new WhereClause with the first parsed relation.
 
Method Summary
 void and(Relation relation)
          Add an additional relation to this WHERE clause.
 java.util.List<Relation> getColumnRelations()
           
 Term getFinishKey()
           
 java.util.List<Term> getKeys()
           
 Term getStartKey()
           
 boolean includeFinishKey()
           
 boolean includeStartKey()
           
 boolean isKeyList()
           
 boolean isKeyRange()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhereClause

public WhereClause(Relation firstRelation)
Create a new WhereClause with the first parsed relation.

Parameters:
firstRelation - key or column relation

WhereClause

public WhereClause()
Method Detail

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