Class 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 
      Constructor Description
      SliceQuery​(java.lang.String field, int id, int max)  
    • Method Summary

      Modifier and Type Method Description
      protected boolean contains​(long value)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getField()  
      int getId()  
      int getMax()  
      int hashCode()  
      java.lang.String toString​(java.lang.String f)  
      • Methods inherited from class org.apache.lucene.search.Query

        classHash, createWeight, rewrite, sameClassAs, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SliceQuery

        public SliceQuery​(java.lang.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 java.lang.String getField()
      • getId

        public int getId()
      • getMax

        public int getMax()
      • equals

        public boolean equals​(java.lang.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 java.lang.String toString​(java.lang.String f)
        Specified by:
        toString in class org.apache.lucene.search.Query