Class WhereClause

java.lang.Object
org.apache.cassandra.cql3.WhereClause

public final class WhereClause extends Object
  • Field Details

  • Method Details

    • empty

      public static WhereClause empty()
    • containsCustomExpressions

      public boolean containsCustomExpressions()
    • renameIdentifier

      public WhereClause renameIdentifier(ColumnIdentifier from, ColumnIdentifier to)
      Renames identifiers in all relations
      Parameters:
      from - the old identifier
      to - the new identifier
      Returns:
      a new WhereClause with with "from" replaced by "to" in all relations
    • parse

      public static WhereClause parse(String cql) throws org.antlr.runtime.RecognitionException
      Throws:
      org.antlr.runtime.RecognitionException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toCQLString

      public String toCQLString()
      Returns a CQL representation of this WHERE clause.
      Returns:
      a CQL representation of this WHERE clause
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • containsTokenRelations

      public boolean containsTokenRelations()
      Checks if the where clause contains some token relations.
      Returns:
      true if it is the case, false otherwise.