Class SliceQuery

Direct Known Subclasses:
DocIdSliceQuery, DocValuesSliceQuery, TermsSliceQuery

public abstract class SliceQuery extends
An abstract Query that defines an hash function to partition the documents in multiple slices.
  • Constructor Details

    • SliceQuery

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

    • 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)
      Specified by:
      equals in class
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class
    • toString

      public String toString(String f)
      Specified by:
      toString in class