|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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
|
String |
name
|
Constructor Summary | |
---|---|
SegmentInfo(String name,
int docCount,
Directory dir)
|
|
SegmentInfo(String name,
int docCount,
Directory dir,
boolean isCompoundFile,
boolean hasSingleNormFile)
|
|
SegmentInfo(String name,
int docCount,
Directory dir,
boolean isCompoundFile,
boolean hasSingleNormFile,
int docStoreOffset,
String docStoreSegment,
boolean docStoreIsCompoundFile,
boolean hasProx)
|
Method Summary | |
---|---|
Object |
clone()
|
boolean |
equals(Object obj)
We consider another SegmentInfo instance equal if it has the same dir and same name. |
List<String> |
files()
|
int |
getDelCount()
|
String |
getDelFileName()
|
Map<String,String> |
getDiagnostics()
|
boolean |
getDocStoreIsCompoundFile()
|
int |
getDocStoreOffset()
|
String |
getDocStoreSegment()
|
boolean |
getHasProx()
|
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 (_ |
String |
segString(Directory dir)
Used for debugging |
long |
sizeInBytes()
Returns total size in bytes of all of files used by this segment. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String name
public int docCount
public Directory dir
Constructor Detail |
---|
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, boolean hasProx)
Method Detail |
---|
public String toString()
toString
in class Object
public Map<String,String> getDiagnostics()
public long sizeInBytes() throws IOException
IOException
public boolean hasDeletions() throws IOException
IOException
public Object clone()
clone
in class Object
public String getDelFileName()
public boolean hasSeparateNorms(int fieldNumber) throws IOException
fieldNumber
- the field index to check
IOException
public boolean hasSeparateNorms() throws IOException
IOException
public String getNormFileName(int number) throws IOException
number
- field index
IOException
public boolean getUseCompoundFile() throws IOException
IOException
public int getDelCount() throws IOException
IOException
public int getDocStoreOffset()
public boolean getDocStoreIsCompoundFile()
public String getDocStoreSegment()
public boolean getHasProx()
public List<String> files() throws IOException
IOException
public String segString(Directory dir)
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |