Class Segment

  • All Implemented Interfaces:

    public class Segment
    extends java.lang.Object
    implements Streamable
    • Field Detail

      • committed

        public boolean committed
      • search

        public boolean search
      • sizeInBytes

        public long sizeInBytes
      • docCount

        public int docCount
      • delDocCount

        public int delDocCount
      • version

        public org.apache.lucene.util.Version version
      • compound

        public java.lang.Boolean compound
      • mergeId

        public java.lang.String mergeId
      • memoryInBytes

        public long memoryInBytes
      • segmentSort

        public segmentSort
      • ramTree

        public org.apache.lucene.util.Accountable ramTree
      • attributes

        public java.util.Map<java.lang.String,​java.lang.String> attributes
    • Constructor Detail

      • Segment

        public Segment​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getGeneration

        public long getGeneration()
      • isCommitted

        public boolean isCommitted()
      • isSearch

        public boolean isSearch()
      • getNumDocs

        public int getNumDocs()
      • getDeletedDocs

        public int getDeletedDocs()
      • getSizeInBytes

        public long getSizeInBytes()
      • getVersion

        public org.apache.lucene.util.Version getVersion()
      • isCompound

        public java.lang.Boolean isCompound()
      • getMergeId

        public java.lang.String getMergeId()
        If set, a string representing that the segment is part of a merge, with the value representing the group of segments that represent this merge.
      • getMemoryInBytes

        public long getMemoryInBytes()
        Estimation of the memory usage used by a segment.
      • getSegmentSort

        public getSegmentSort()
        Return the sort order of this segment, or null if the segment has no sort.
      • getAttributes

        public java.util.Map<java.lang.String,​java.lang.String> getAttributes()
        Return segment attributes.
        See Also:
      • equals

        public boolean equals​(java.lang.Object o)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • readSegment

        public static Segment readSegment​(StreamInput in)
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object