Package org.elasticsearch.search.slice
Class SliceQuery
java.lang.Object
org.apache.lucene.search.Query
org.elasticsearch.search.slice.SliceQuery
- Direct Known Subclasses:
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 Summary
Constructors -
Method Summary
Methods inherited from class org.apache.lucene.search.Query
classHash, createWeight, rewrite, sameClassAs, toString, visit
-
Constructor Details
-
SliceQuery
- Parameters:
field- The name of the fieldid- The id of the slicemax- The maximum number of slices
-
-
Method Details
-
contains
protected final boolean contains(long value) -
getField
-
getId
public int getId() -
getMax
public int getMax() -
equals
- Specified by:
equalsin classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.apache.lucene.search.Query
-
toString
- Specified by:
toStringin classorg.apache.lucene.search.Query
-