Class Segment

org.elasticsearch.index.engine.Segment
All Implemented Interfaces:
Writeable

public class Segment extends implements Writeable
  • Field Details

    • committed

      public boolean committed
    • sizeInBytes

      public long sizeInBytes
    • docCount

      public int docCount
    • delDocCount

      public int delDocCount
    • version

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

      public  compound
    • mergeId

      public  mergeId
    • memoryInBytes

      public long memoryInBytes
    • segmentSort

      public org.apache.lucene.search.Sort segmentSort
    • ramTree

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

      public <,​> attributes
  • Constructor Details

    • Segment

      public Segment(StreamInput in) throws
      Throws:
    • Segment

      public Segment( name)
  • Method Details

    • getName

      public  getName()
    • getGeneration

      public long getGeneration()
    • isCommitted

      public boolean isCommitted()
    • isSearch

      public boolean isSearch()
    • getNumDocs

      public int getNumDocs()
    • getDeletedDocs

      public int getDeletedDocs()
    • getSize

      public ByteSizeValue getSize()
    • getVersion

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

      @Nullable public  isCompound()
    • getMergeId

      @Nullable public  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 org.apache.lucene.search.Sort getSegmentSort()
      Return the sort order of this segment, or null if the segment has no sort.
    • getAttributes

      public <,​> getAttributes()
      Return segment attributes.
      See Also:
      SegmentInfo.getAttributes()
    • equals

      public boolean equals( o)
      Overrides:
       in class 
    • hashCode

      public int hashCode()
      Overrides:
       in class 
    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • toString

      public  toString()
      Overrides:
       in class