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
Modifier and TypeFieldDescriptionboolean
int
int
long
org.apache.lucene.util.Accountable
boolean
org.apache.lucene.search.Sort
long
org.apache.lucene.util.Version
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return segment attributes.int
long
long
Estimation 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()
int
org.apache.lucene.search.Sort
Return the sort order of this segment, or null if the segment has no sort.getSize()
org.apache.lucene.util.Version
int
hashCode()
boolean
boolean
isSearch()
toString()
void
writeTo(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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
toString
-