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 |
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() |
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.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 boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static Segment readSegment(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object