Package org.apache.cassandra.cql3
Class WhereClause
java.lang.Object
org.apache.cassandra.cql3.WhereClause
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanChecks if the where clause contains some token relations.static WhereClauseempty()booleaninthashCode()static WhereClauserenameIdentifier(ColumnIdentifier from, ColumnIdentifier to) Renames identifiers in all relationsReturns a CQL representation of this WHERE clause.toString()
-
Field Details
-
relations
-
expressions
-
-
Method Details
-
empty
-
containsCustomExpressions
public boolean containsCustomExpressions() -
renameIdentifier
Renames identifiers in all relations- Parameters:
from- the old identifierto- the new identifier- Returns:
- a new WhereClause with with "from" replaced by "to" in all relations
-
parse
- Throws:
org.antlr.runtime.RecognitionException
-
toString
-
toCQLString
Returns a CQL representation of this WHERE clause.- Returns:
- a CQL representation of this WHERE clause
-
equals
-
hashCode
public int hashCode() -
containsTokenRelations
public boolean containsTokenRelations()Checks if the where clause contains some token relations.- Returns:
trueif it is the case,falseotherwise.
-