Class SingleColumnRestriction.ContainsRestriction

    • Constructor Detail

      • ContainsRestriction

        public ContainsRestriction​(ColumnMetadata columnDef,
                                   Term t,
                                   boolean isKey)
    • Method Detail

      • 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
      • isContains

        public boolean isContains()
      • addToRowFilter

        public 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
      • isSupportedBy

        protected boolean isSupportedBy​(Index index)
        Description copied from class: SingleColumnRestriction
        Check if this type of restriction is supported by the specified index.
        Specified by:
        isSupportedBy in class SingleColumnRestriction
        Parameters:
        index - the secondary index
        Returns:
        true this type of restriction is supported by the specified index, false otherwise.
      • needsFiltering

        public boolean needsFiltering​(Index.Group indexGroup)
        Description copied from interface: Restriction
        Returns whether this restriction would need filtering if the specified index group were used.
        Specified by:
        needsFiltering in interface Restriction
        Overrides:
        needsFiltering in class SingleColumnRestriction
        Parameters:
        indexGroup - an index group
        Returns:
        true if this would need filtering if indexGroup were used, false otherwise
      • numberOfValues

        public int numberOfValues()
      • numberOfKeys

        public int numberOfKeys()
      • numberOfEntries

        public int numberOfEntries()
      • addFunctionsTo

        public void addFunctionsTo​(java.util.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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hasBound

        public boolean hasBound​(Bound b)
        Description copied from interface: SingleRestriction
        Checks if the specified bound is set or not.
        Parameters:
        b - the bound type
        Returns:
        true if the specified bound is set, false otherwise
      • 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
      • isInclusive

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