| java.lang.Object org.apache.lucene.index.SegmentInfo
SegmentInfo | final class SegmentInfo (Code) | | |
Constructor Summary | |
public | SegmentInfo(String name, int docCount, Directory dir) | public | SegmentInfo(String name, int docCount, Directory dir, boolean isCompoundFile, boolean hasSingleNormFile) | public | SegmentInfo(String name, int docCount, Directory dir, boolean isCompoundFile, boolean hasSingleNormFile, int docStoreOffset, String docStoreSegment, boolean docStoreIsCompoundFile) | | SegmentInfo(Directory dir, int format, IndexInput input) Construct a new SegmentInfo instance by reading a
previously saved SegmentInfo from input. |
CHECK_DIR | final static int CHECK_DIR(Code) | | |
WITHOUT_GEN | final static int WITHOUT_GEN(Code) | | |
docCount | public int docCount(Code) | | |
sizeInBytes | long sizeInBytes(Code) | | |
SegmentInfo | public SegmentInfo(String name, int docCount, Directory dir, boolean isCompoundFile, boolean hasSingleNormFile)(Code) | | |
SegmentInfo | public SegmentInfo(String name, int docCount, Directory dir, boolean isCompoundFile, boolean hasSingleNormFile, int docStoreOffset, String docStoreSegment, boolean docStoreIsCompoundFile)(Code) | | |
SegmentInfo | SegmentInfo(Directory dir, int format, IndexInput input) throws IOException(Code) | | Construct a new SegmentInfo instance by reading a
previously saved SegmentInfo from input.
Parameters: dir - directory to load from Parameters: format - format of the segments info file Parameters: input - input handle to read segment info from |
advanceDelGen | void advanceDelGen()(Code) | | |
advanceNormGen | void advanceNormGen(int fieldIndex)(Code) | | Increment the generation count for the norms file for
this field.
Parameters: fieldIndex - field whose norm file will be rewritten |
clearDelGen | void clearDelGen()(Code) | | |
equals | public boolean equals(Object obj)(Code) | | We consider another SegmentInfo instance equal if it
has the same dir and same name.
|
getDocStoreIsCompoundFile | boolean getDocStoreIsCompoundFile()(Code) | | |
getDocStoreOffset | int getDocStoreOffset()(Code) | | |
getNormFileName | String getNormFileName(int number) throws IOException(Code) | | Get the file name for the norms file for this field.
Parameters: number - field index |
getUseCompoundFile | boolean getUseCompoundFile() throws IOException(Code) | | Returns true if this segment is stored as a compound
file; else, false.
|
hasSeparateNorms | boolean hasSeparateNorms(int fieldNumber) throws IOException(Code) | | Returns true if this field for this segment has saved a separate norms file (__N.sX).
Parameters: fieldNumber - the field index to check |
hasSeparateNorms | boolean hasSeparateNorms() throws IOException(Code) | | Returns true if any fields in this segment have separate norms.
|
hashCode | public int hashCode()(Code) | | |
reset | void reset(SegmentInfo src)(Code) | | Copy everything from src SegmentInfo into our instance.
|
setDocStoreIsCompoundFile | void setDocStoreIsCompoundFile(boolean v)(Code) | | |
setDocStoreOffset | void setDocStoreOffset(int offset)(Code) | | |
setNumFields | void setNumFields(int numFields)(Code) | | |
setUseCompoundFile | void setUseCompoundFile(boolean isCompoundFile)(Code) | | Mark whether this segment is stored as a compound file.
Parameters: isCompoundFile - true if this is a compound file;else, false |
sizeInBytes | long sizeInBytes() throws IOException(Code) | | Returns total size in bytes of all of files used by
this segment.
|
|
|