Class Segment

java.lang.Object
org.elasticsearch.index.engine.Segment
All Implemented Interfaces:
Writeable

public class Segment extends Object 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 Boolean compound
    • mergeId

      public String mergeId
    • memoryInBytes

      public long memoryInBytes
    • segmentSort

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

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

      public Map<String,String> attributes
  • Constructor Details

  • Method Details

    • getName

      public String 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 Boolean isCompound()
    • getMergeId

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • writeTo

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

      public String toString()
      Overrides:
      toString in class Object