org.apache.lucene.index
Class SegmentInfoPerCommit

java.lang.Object
  extended by org.apache.lucene.index.SegmentInfoPerCommit

public class SegmentInfoPerCommit
extends Object

Embeds a [read-only] SegmentInfo and adds per-commit fields.

WARNING: This API is experimental and might change in incompatible ways in the next release.

Field Summary
 SegmentInfo info
           
 
Constructor Summary
SegmentInfoPerCommit(SegmentInfo info, int delCount, long delGen)
           
 
Method Summary
 SegmentInfoPerCommit clone()
           
 Collection<String> files()
           
 int getDelCount()
           
 long getDelGen()
           
 long getNextDelGen()
           
 boolean hasDeletions()
           
 void setDelGen(long delGen)
           
 long sizeInBytes()
           
 String toString()
           
 String toString(Directory dir, int pendingDelCount)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

info

public final SegmentInfo info
Constructor Detail

SegmentInfoPerCommit

public SegmentInfoPerCommit(SegmentInfo info,
                            int delCount,
                            long delGen)
Method Detail

sizeInBytes

public long sizeInBytes()
                 throws IOException
Throws:
IOException

files

public Collection<String> files()
                         throws IOException
Throws:
IOException

setDelGen

public void setDelGen(long delGen)

hasDeletions

public boolean hasDeletions()

getNextDelGen

public long getNextDelGen()

getDelGen

public long getDelGen()

getDelCount

public int getDelCount()

toString

public String toString(Directory dir,
                       int pendingDelCount)

toString

public String toString()
Overrides:
toString in class Object

clone

public SegmentInfoPerCommit clone()
Overrides:
clone in class Object


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.