Class MultiColumnRestriction.SliceRestriction

java.lang.Object
org.apache.cassandra.cql3.restrictions.MultiColumnRestriction
org.apache.cassandra.cql3.restrictions.MultiColumnRestriction.SliceRestriction
All Implemented Interfaces:
Restriction, SingleRestriction
Enclosing class:
MultiColumnRestriction

public static class MultiColumnRestriction.SliceRestriction extends MultiColumnRestriction
  • Constructor Details

  • Method Details

    • isSlice

      public boolean isSlice()
    • appendTo

      public MultiCBuilder appendTo(MultiCBuilder builder, QueryOptions options)
      Description copied from interface: SingleRestriction
      Appends the values of this SingleRestriction to the specified builder.
      Parameters:
      builder - the MultiCBuilder to append to.
      options - the query options
      Returns:
      the MultiCBuilder
    • appendBoundTo

      public MultiCBuilder appendBoundTo(MultiCBuilder builder, Bound bound, QueryOptions options)
      Description copied from interface: SingleRestriction
      Appends the values of the SingleRestriction for the specified bound to the specified builder.
      Parameters:
      builder - the MultiCBuilder to append to.
      bound - the bound
      options - the query options
      Returns:
      the MultiCBuilder
    • isSupportedBy

      protected boolean isSupportedBy(Index index, ColumnMetadata column)
      Specified by:
      isSupportedBy in class MultiColumnRestriction
    • hasBound

      public boolean hasBound(Bound bound)
      Description copied from interface: SingleRestriction
      Checks if the specified bound is set or not.
      Parameters:
      bound - the bound type
      Returns:
      true if the specified bound is set, false otherwise
    • addFunctionsTo

      public void addFunctionsTo(List<Function> functions)
      Description copied from interface: Restriction
      Adds all functions (native and user-defined) used by any component of the restriction to the specified list.
      Parameters:
      functions - the list to add to
    • isInclusive

      public boolean isInclusive(Bound bound)
      Description copied from interface: SingleRestriction
      Checks if the specified bound is inclusive or not.
      Parameters:
      bound - the bound type
      Returns:
      true if the specified bound is inclusive, false otherwise
    • doMergeWith

      public SingleRestriction doMergeWith(SingleRestriction otherRestriction)
      Specified by:
      doMergeWith in class MultiColumnRestriction
    • addToRowFilter

      public final void addToRowFilter(RowFilter filter, IndexRegistry indexRegistry, QueryOptions options)
      Description copied from interface: Restriction
      Adds to the specified row filter the expressions corresponding to this Restriction.
      Parameters:
      filter - the row filter to add expressions to
      indexRegistry - the index registry
      options - the query options
    • toString

      public String toString()
      Overrides:
      toString in class MultiColumnRestriction