Class ReaderSlice

java.lang.Object
org.apache.lucene.index.ReaderSlice

public final class ReaderSlice extends Object
Subreader slice from a parent composite reader.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ReaderSlice[]
    Zero-length ReaderSlice array.
    final int
    Number of documents in this slice.
    final int
    Sub-reader index for this slice.
    final int
    Document ID this slice starts from.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReaderSlice(int start, int length, int readerIndex)
    Sole constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • EMPTY_ARRAY

      public static final ReaderSlice[] EMPTY_ARRAY
      Zero-length ReaderSlice array.
    • start

      public final int start
      Document ID this slice starts from.
    • length

      public final int length
      Number of documents in this slice.
    • readerIndex

      public final int readerIndex
      Sub-reader index for this slice.
  • Constructor Details

    • ReaderSlice

      public ReaderSlice(int start, int length, int readerIndex)
      Sole constructor.
  • Method Details