|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.index.SegmentInfoPerCommit
public class SegmentInfoPerCommit
Embeds a [read-only] SegmentInfo and adds per-commit fields.
Field Summary | |
---|---|
SegmentInfo |
info
The SegmentInfo that we wrap. |
Constructor Summary | |
---|---|
SegmentInfoPerCommit(SegmentInfo info,
int delCount,
long delGen)
Sole constructor. |
Method Summary | |
---|---|
SegmentInfoPerCommit |
clone()
|
Collection<String> |
files()
Returns all files in use by this segment. |
int |
getDelCount()
Returns the number of deleted docs in the segment. |
long |
getDelGen()
Returns generation number of the live docs file or -1 if there are no deletes yet. |
long |
getNextDelGen()
Returns the next available generation number of the live docs file. |
boolean |
hasDeletions()
Returns true if there are any deletions for the segment at this commit. |
void |
setDelGen(long delGen)
Sets the generation number of the live docs file. |
long |
sizeInBytes()
Returns total size in bytes of all files for this segment. |
String |
toString()
|
String |
toString(Directory dir,
int pendingDelCount)
Returns a description of this segment. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final SegmentInfo info
SegmentInfo
that we wrap.
Constructor Detail |
---|
public SegmentInfoPerCommit(SegmentInfo info, int delCount, long delGen)
info
- SegmentInfo
that we wrapdelCount
- number of deleted documents in this segmentdelGen
- deletion generation number (used to name
deletion files)Method Detail |
---|
public long sizeInBytes() throws IOException
NOTE: This value is not correct for 3.0 segments that have shared docstores. To get the correct value, upgrade!
IOException
public Collection<String> files() throws IOException
IOException
public void setDelGen(long delGen)
getDelGen()
public boolean hasDeletions()
public long getNextDelGen()
public long getDelGen()
public int getDelCount()
public String toString(Directory dir, int pendingDelCount)
public String toString()
toString
in class Object
public SegmentInfoPerCommit clone()
clone
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |