public final class WhereClause
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
WhereClause.Builder |
Modifier and Type | Field and Description |
---|---|
java.util.List<CustomIndexExpression> |
expressions |
java.util.List<Relation> |
relations |
Modifier and Type | Method and Description |
---|---|
boolean |
containsCustomExpressions() |
boolean |
containsTokenRelations()
Checks if the where clause contains some token relations.
|
static WhereClause |
empty() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static WhereClause |
parse(java.lang.String cql) |
WhereClause |
renameIdentifier(ColumnIdentifier from,
ColumnIdentifier to)
Renames identifiers in all relations
|
java.lang.String |
toCQLString()
Returns a CQL representation of this WHERE clause.
|
java.lang.String |
toString() |
public final java.util.List<Relation> relations
public final java.util.List<CustomIndexExpression> expressions
public static WhereClause empty()
public boolean containsCustomExpressions()
public WhereClause renameIdentifier(ColumnIdentifier from, ColumnIdentifier to)
from
- the old identifierto
- the new identifierpublic static WhereClause parse(java.lang.String cql) throws org.antlr.runtime.RecognitionException
org.antlr.runtime.RecognitionException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toCQLString()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean containsTokenRelations()
true
if it is the case, false
otherwise.Copyright © 2009-2021 The Apache Software Foundation