org.elasticsearch.index.engine
Class Segment

java.lang.Object
  extended by org.elasticsearch.index.engine.Segment
All Implemented Interfaces:
Streamable

public class Segment
extends Object
implements Streamable


Field Summary
 boolean committed
           
 int delDocCount
           
 int docCount
           
 boolean search
           
 long sizeInBytes
           
 
Constructor Summary
Segment(String name)
           
 
Method Summary
 boolean committed()
           
 int deletedDocs()
           
 boolean equals(Object o)
           
 long generation()
           
 int getDeletedDocs()
           
 long getGeneration()
           
 String getName()
           
 int getNumDocs()
           
 ByteSizeValue getSize()
           
 long getSizeInBytes()
           
 int hashCode()
           
 boolean isCommitted()
           
 boolean isSearch()
           
 String name()
           
 int numDocs()
           
 void readFrom(StreamInput in)
           
static Segment readSegment(StreamInput in)
           
 boolean search()
           
 ByteSizeValue size()
           
 long sizeInBytes()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

committed

public boolean committed

search

public boolean search

sizeInBytes

public long sizeInBytes

docCount

public int docCount

delDocCount

public int delDocCount
Constructor Detail

Segment

public Segment(String name)
Method Detail

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.