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 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()


Copyright © 2011 The Apache Software Foundation