Class SliceQuery

  • Direct Known Subclasses:
    DocValuesSliceQuery, TermsSliceQuery

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

      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

        classHash, createWeight, rewrite, sameClassAs, toString, visit
      • 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)
        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
      • hashCode

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

        public java.lang.String toString​(java.lang.String f)
        Specified by:
        toString in class