Package org.elasticsearch.index.engine
Class Segment
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 TypeFieldDescription<,>
boolean
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
o)
<,>
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.Methods inherited from class java.lang.
, , , , , , ,
-
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
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
- 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
-
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
Description copied from interface:Writeable
Write this into the StreamOutput. -
toString
public toString()- Overrides:
in class
-