Class LeafMetaData


  • public final class LeafMetaData
    extends java.lang.Object
    Provides read-only metadata about a leaf.
    • Constructor Summary

      Constructors 
      Constructor Description
      LeafMetaData​(int createdVersionMajor, Version minVersion, Sort sort, boolean hasBlocks)
      Expert: Sole constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCreatedVersionMajor()
      Get the Lucene version that created this index.
      Version getMinVersion()
      Return the minimum Lucene version that contributed documents to this index, or null if this information is not available.
      Sort getSort()
      Return the order in which documents from this index are sorted, or null if documents are in no particular order.
      boolean hasBlocks()
      Returns true iff this index contains blocks created with IndexWriter.addDocument(Iterable) or it's corresponding update methods with at least 2 or more documents per call.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait