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
-
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:
equals
in classorg.apache.lucene.search.Query
-
hashCode
public int hashCode()- Specified by:
hashCode
in classorg.apache.lucene.search.Query
-
toString
- Specified by:
toString
in classorg.apache.lucene.search.Query
-