Class SliceQuery

java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.slice.SliceQuery
Direct Known Subclasses:
DocIdSliceQuery, DocValuesSliceQuery, TermsSliceQuery

public abstract class SliceQuery extends org.apache.lucene.search.Query
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)
      Parameters:
      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 org.apache.lucene.search.Query
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class org.apache.lucene.search.Query
    • toString

      public String toString(String f)
      Specified by:
      toString in class org.apache.lucene.search.Query