org.elasticsearch.index.engine
Class Segment
java.lang.Object
org.elasticsearch.index.engine.Segment
- All Implemented Interfaces:
- Streamable
public class Segment
- extends java.lang.Object
- implements Streamable
Constructor Summary |
Segment(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
committed
public boolean committed
search
public boolean search
sizeInBytes
public long sizeInBytes
docCount
public int docCount
delDocCount
public int delDocCount
Segment
public Segment(java.lang.String name)
name
public java.lang.String name()
getName
public java.lang.String getName()
generation
public long generation()
getGeneration
public long getGeneration()
committed
public boolean committed()
isCommitted
public boolean isCommitted()
search
public boolean search()
isSearch
public boolean isSearch()
numDocs
public int numDocs()
getNumDocs
public int getNumDocs()
deletedDocs
public int deletedDocs()
getDeletedDocs
public int getDeletedDocs()
size
public ByteSizeValue size()
getSize
public ByteSizeValue getSize()
sizeInBytes
public long sizeInBytes()
getSizeInBytes
public long getSizeInBytes()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
readSegment
public static Segment readSegment(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException