public class Segment extends Object implements Streamable
Modifier and Type | Field and Description |
---|---|
boolean |
committed |
Boolean |
compound |
int |
delDocCount |
int |
docCount |
long |
memoryInBytes |
String |
mergeId |
org.apache.lucene.util.Accountable |
ramTree |
boolean |
search |
long |
sizeInBytes |
org.apache.lucene.util.Version |
version |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getDeletedDocs() |
long |
getGeneration() |
long |
getMemoryInBytes()
Estimation of the memory usage used by a segment.
|
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.
|
String |
getName() |
int |
getNumDocs() |
ByteSizeValue |
getSize() |
long |
getSizeInBytes() |
org.apache.lucene.util.Version |
getVersion() |
int |
hashCode() |
boolean |
isCommitted() |
Boolean |
isCompound() |
boolean |
isSearch() |
void |
readFrom(StreamInput in) |
static Segment |
readSegment(StreamInput in) |
String |
toString() |
void |
writeTo(StreamOutput out) |
public boolean committed
public boolean search
public long sizeInBytes
public int docCount
public int delDocCount
public org.apache.lucene.util.Version version
public Boolean compound
public String mergeId
public long memoryInBytes
public org.apache.lucene.util.Accountable ramTree
public Segment(String name)
public 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 String getMergeId()
public long getMemoryInBytes()
public static Segment readSegment(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.