org.elasticsearch.index.engine
Class Segment
java.lang.Object
org.elasticsearch.index.engine.Segment
- All Implemented Interfaces:
- Streamable
public class Segment
- extends Object
- implements Streamable
committed
public boolean committed
search
public boolean search
sizeInBytes
public long sizeInBytes
docCount
public int docCount
delDocCount
public int delDocCount
Segment
public Segment(String name)
name
public String name()
getName
public 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(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
readSegment
public static Segment readSegment(StreamInput in)
throws IOException
- Throws:
IOException
readFrom
public void readFrom(StreamInput in)
throws IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.