public class Segment extends java.lang.Object implements Streamable
| Modifier and Type | Field and Description |
|---|---|
boolean |
committed |
java.lang.Boolean |
compound |
int |
delDocCount |
int |
docCount |
long |
memoryInBytes |
java.lang.String |
mergeId |
org.apache.lucene.util.Accountable |
ramTree |
boolean |
search |
org.apache.lucene.search.Sort |
segmentSort |
long |
sizeInBytes |
org.apache.lucene.util.Version |
version |
| Constructor and Description |
|---|
Segment(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getDeletedDocs() |
long |
getGeneration() |
long |
getMemoryInBytes()
Estimation of the memory usage used by a segment.
|
java.lang.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.
|
java.lang.String |
getName() |
int |
getNumDocs() |
org.apache.lucene.search.Sort |
getSegmentSort()
Return the sort order of this segment, or null if the segment has no sort.
|
ByteSizeValue |
getSize() |
long |
getSizeInBytes() |
org.apache.lucene.util.Version |
getVersion() |
int |
hashCode() |
boolean |
isCommitted() |
java.lang.Boolean |
isCompound() |
boolean |
isSearch() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static Segment |
readSegment(StreamInput in) |
java.lang.String |
toString() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public boolean committed
public boolean search
public long sizeInBytes
public int docCount
public int delDocCount
public org.apache.lucene.util.Version version
public java.lang.Boolean compound
public java.lang.String mergeId
public long memoryInBytes
public org.apache.lucene.search.Sort segmentSort
public org.apache.lucene.util.Accountable ramTree
public java.lang.String getName()
public long getGeneration()
public boolean isCommitted()
public boolean isSearch()
public int getNumDocs()
public int getDeletedDocs()
public ByteSizeValue getSize()
public long getSizeInBytes()
public org.apache.lucene.util.Version getVersion()
@Nullable public java.lang.Boolean isCompound()
@Nullable public java.lang.String getMergeId()
public long getMemoryInBytes()
public org.apache.lucene.search.Sort getSegmentSort()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static Segment readSegment(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object