public final class SegmentInfo
extends java.lang.Object
NOTE: This API is new and still experimental (subject to change suddenly in the next release)
Modifier and Type | Field and Description |
---|---|
Directory |
dir |
int |
docCount |
java.lang.String |
name |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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 |
files() |
int |
getDelCount() |
java.lang.String |
getDelFileName() |
java.util.Map |
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() |
public java.lang.String name
public int docCount
public Directory dir
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)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map 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 checkjava.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 indexjava.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 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
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.