Package org.elasticsearch.index.engine
Class Segment
- java.lang.Object
-
- org.elasticsearch.index.engine.Segment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,String>attributesbooleancommittedBooleancompoundintdelDocCountintdocCountlongmemoryInBytesStringmergeIdAccountableramTreebooleansearchSortsegmentSortlongsizeInBytesVersionversion
-
Constructor Summary
Constructors Constructor Description Segment(String name)Segment(StreamInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Map<String,String>getAttributes()Return segment attributes.intgetDeletedDocs()longgetGeneration()longgetMemoryInBytes()Estimation of the memory usage used by a segment.StringgetMergeId()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.StringgetName()intgetNumDocs()SortgetSegmentSort()Return the sort order of this segment, or null if the segment has no sort.ByteSizeValuegetSize()VersiongetVersion()inthashCode()booleanisCommitted()BooleanisCompound()booleanisSearch()StringtoString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
-
-
Field Detail
-
committed
public boolean committed
-
search
public boolean search
-
sizeInBytes
public long sizeInBytes
-
docCount
public int docCount
-
delDocCount
public int delDocCount
-
version
public Version version
-
compound
public Boolean compound
-
mergeId
public String mergeId
-
memoryInBytes
public long memoryInBytes
-
segmentSort
public Sort segmentSort
-
ramTree
public Accountable ramTree
-
-
Constructor Detail
-
Segment
public Segment(StreamInput in) throws IOException
- Throws:
IOException
-
Segment
public Segment(String name)
-
-
Method Detail
-
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 Version getVersion()
-
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 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()
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
-