Package org.elasticsearch.index.engine
Class Segment
java.lang.Object
org.elasticsearch.index.engine.Segment
- All Implemented Interfaces:
Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintintlongorg.apache.lucene.util.Accountablebooleanorg.apache.lucene.search.Sortlongorg.apache.lucene.util.Version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn segment attributes.intlonglongEstimation of the memory usage used by a segment.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.getName()intorg.apache.lucene.search.SortReturn the sort order of this segment, or null if the segment has no sort.getSize()org.apache.lucene.util.VersioninthashCode()booleanbooleanisSearch()toString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Field Details
-
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
-
mergeId
-
memoryInBytes
public long memoryInBytes -
segmentSort
public org.apache.lucene.search.Sort segmentSort -
ramTree
public org.apache.lucene.util.Accountable ramTree -
attributes
-
-
Constructor Details
-
Segment
- Throws:
IOException
-
Segment
-
-
Method Details
-
getName
-
getGeneration
public long getGeneration() -
isCommitted
public boolean isCommitted() -
isSearch
public boolean isSearch() -
getNumDocs
public int getNumDocs() -
getDeletedDocs
public int getDeletedDocs() -
getSize
-
getVersion
public org.apache.lucene.util.Version getVersion() -
isCompound
-
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
Return segment attributes.- See Also:
SegmentInfo.getAttributes()
-
equals
-
hashCode
public int hashCode() -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toString
-