|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.index.SegmentInfo
public final class SegmentInfo
Information about a segment such as it's name, directory, and files related to the segment. *
NOTE: This API is new and still experimental (subject to change suddenly in the next release)
Field Summary | |
---|---|
Directory |
dir
|
int |
docCount
|
java.lang.String |
name
|
Constructor Summary | |
---|---|
SegmentInfo(java.lang.String name,
int docCount,
Directory dir)
|
|
SegmentInfo(java.lang.String name,
int docCount,
Directory dir,
boolean isCompoundFile,
boolean hasSingleNormFile)
|
|
SegmentInfo(java.lang.String name,
int docCount,
Directory dir,
boolean isCompoundFile,
boolean hasSingleNormFile,
int docStoreOffset,
java.lang.String docStoreSegment,
boolean docStoreIsCompoundFile,
boolean hasProx)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
We consider another SegmentInfo instance equal if it has the same dir and same name. |
java.util.List<java.lang.String> |
files()
|
int |
getDelCount()
|
java.lang.String |
getDelFileName()
|
java.util.Map<java.lang.String,java.lang.String> |
getDiagnostics()
|
boolean |
getDocStoreIsCompoundFile()
|
int |
getDocStoreOffset()
|
java.lang.String |
getDocStoreSegment()
|
boolean |
getHasProx()
|
java.lang.String |
getNormFileName(int number)
Get the file name for the norms file for this field. |
boolean |
getUseCompoundFile()
Returns true if this segment is stored as a compound file; else, false. |
boolean |
hasDeletions()
|
int |
hashCode()
|
boolean |
hasSeparateNorms()
Returns true if any fields in this segment have separate norms. |
boolean |
hasSeparateNorms(int fieldNumber)
Returns true if this field for this segment has saved a separate norms file (_ |
java.lang.String |
segString(Directory dir)
Used for debugging |
long |
sizeInBytes()
Returns total size in bytes of all of files used by this segment. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String name
public int docCount
public Directory dir
Constructor Detail |
---|
public SegmentInfo(java.lang.String name, int docCount, Directory dir)
public SegmentInfo(java.lang.String name, int docCount, Directory dir, boolean isCompoundFile, boolean hasSingleNormFile)
public SegmentInfo(java.lang.String name, int docCount, Directory dir, boolean isCompoundFile, boolean hasSingleNormFile, int docStoreOffset, java.lang.String docStoreSegment, boolean docStoreIsCompoundFile, boolean hasProx)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.String> getDiagnostics()
public long sizeInBytes() throws java.io.IOException
java.io.IOException
public boolean hasDeletions() throws java.io.IOException
java.io.IOException
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String getDelFileName()
public boolean hasSeparateNorms(int fieldNumber) throws java.io.IOException
fieldNumber
- the field index to check
java.io.IOException
public boolean hasSeparateNorms() throws java.io.IOException
java.io.IOException
public java.lang.String getNormFileName(int number) throws java.io.IOException
number
- field index
java.io.IOException
public boolean getUseCompoundFile() throws java.io.IOException
java.io.IOException
public int getDelCount() throws java.io.IOException
java.io.IOException
public int getDocStoreOffset()
public boolean getDocStoreIsCompoundFile()
public java.lang.String getDocStoreSegment()
public boolean getHasProx()
public java.util.List<java.lang.String> files() throws java.io.IOException
java.io.IOException
public java.lang.String segString(Directory dir)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |