Class SliceQuery

    • Constructor Detail

      • SliceQuery

        public SliceQuery​(String field,
                          int id,
                          int max)
        Parameters:
        field - The name of the field
        id - The id of the slice
        max - The maximum number of slices
    • Method Detail

      • contains

        protected final boolean contains​(long value)
      • getField

        public String getField()
      • getId

        public int getId()
      • getMax

        public int getMax()
      • equals

        public boolean equals​(Object o)
        Description copied from class: Query
        Override and implement query instance equivalence properly in a subclass. This is required so that QueryCache works properly. Typically a query will be equal to another only if it's an instance of the same class and its document-filtering properties are identical that other instance. Utility methods are provided for certain repetitive code.
        Specified by:
        equals in class Query
        See Also:
        Query.sameClassAs(Object), Query.classHash()
      • hashCode

        public int hashCode()
        Description copied from class: Query
        Override and implement query hash code properly in a subclass. This is required so that QueryCache works properly.
        Specified by:
        hashCode in class Query
        See Also:
        Query.equals(Object)
      • toString

        public String toString​(String f)
        Description copied from class: Query
        Prints a query to a string, with field assumed to be the default field and omitted.
        Specified by:
        toString in class Query