org.apache.lucene.index
Class SegmentInfoPerCommit
java.lang.Object
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.
info
public final SegmentInfo info
SegmentInfoPerCommit
public SegmentInfoPerCommit(SegmentInfo info,
int delCount,
long delGen)
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.