public class WhereClause
extends java.lang.Object
Constructor and Description |
---|
WhereClause() |
WhereClause(Relation firstRelation)
Create a new WhereClause with the first parsed relation.
|
Modifier and Type | Method and Description |
---|---|
void |
and(Relation relation)
Add an additional relation to this WHERE clause.
|
void |
andKeyEquals(Term key)
The same as KEY =
|
void |
extractKeysFromColumns(CFMetaData cfm) |
java.util.List<Relation> |
getClauseRelations() |
java.util.List<Relation> |
getColumnRelations() |
Term |
getFinishKey() |
java.lang.String |
getKeyAlias() |
java.util.Set<Term> |
getKeys() |
Term |
getStartKey() |
boolean |
includeFinishKey() |
boolean |
includeStartKey() |
boolean |
isKeyRange() |
boolean |
isMultiKey() |
void |
setKeyAlias(java.lang.String alias) |
void |
setMultiKey(boolean multiKey) |
java.lang.String |
toString() |
public WhereClause(Relation firstRelation)
firstRelation
- key or column relationpublic WhereClause()
public void and(Relation relation)
relation
- the relation to add.public void andKeyEquals(Term key)
key
- key to include into clausepublic java.util.List<Relation> getColumnRelations()
public boolean isKeyRange()
public Term getStartKey()
public Term getFinishKey()
public java.util.Set<Term> getKeys()
public boolean includeStartKey()
public boolean includeFinishKey()
public void setKeyAlias(java.lang.String alias)
public boolean isMultiKey()
public void setMultiKey(boolean multiKey)
public java.lang.String getKeyAlias()
public void extractKeysFromColumns(CFMetaData cfm)
public java.util.List<Relation> getClauseRelations()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015 The Apache Software Foundation