public final class FieldInvertState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) AttributeSource |
attributeSource |
(package private) int |
indexCreatedVersionMajor |
(package private) IndexOptions |
indexOptions |
(package private) int |
lastPosition |
(package private) int |
lastStartOffset |
(package private) int |
length |
(package private) int |
maxTermFrequency |
(package private) java.lang.String |
name |
(package private) int |
numOverlap |
(package private) int |
offset |
(package private) OffsetAttribute |
offsetAttribute |
(package private) PayloadAttribute |
payloadAttribute |
(package private) PositionIncrementAttribute |
posIncrAttribute |
(package private) int |
position |
(package private) TermToBytesRefAttribute |
termAttribute |
(package private) TermFrequencyAttribute |
termFreqAttribute |
(package private) int |
uniqueTermCount |
Constructor and Description |
---|
FieldInvertState(int indexCreatedVersionMajor,
java.lang.String name,
IndexOptions indexOptions)
Creates {code FieldInvertState} for the specified
field name.
|
FieldInvertState(int indexCreatedVersionMajor,
java.lang.String name,
IndexOptions indexOptions,
int position,
int length,
int numOverlap,
int offset,
int maxTermFrequency,
int uniqueTermCount)
Creates {code FieldInvertState} for the specified
field name and values for all fields.
|
Modifier and Type | Method and Description |
---|---|
AttributeSource |
getAttributeSource()
Returns the
AttributeSource from the TokenStream that provided the indexed tokens for this
field. |
int |
getIndexCreatedVersionMajor()
Return the version that was used to create the index, or 6 if it was created before 7.0.
|
IndexOptions |
getIndexOptions()
Get the index options for this field
|
int |
getLength()
Get total number of terms in this field.
|
int |
getMaxTermFrequency()
Get the maximum term-frequency encountered for any term in the field.
|
java.lang.String |
getName()
Return the field's name
|
int |
getNumOverlap()
Get the number of terms with
positionIncrement == 0 . |
int |
getOffset()
Get end offset of the last processed term.
|
int |
getPosition()
Get the last processed term position.
|
int |
getUniqueTermCount()
Return the number of unique terms encountered in this field.
|
(package private) void |
reset()
Re-initialize the state
|
(package private) void |
setAttributeSource(AttributeSource attributeSource)
Sets attributeSource to a new instance.
|
void |
setLength(int length)
Set length value.
|
void |
setNumOverlap(int numOverlap)
Set number of terms with
positionIncrement ==
0 . |
final int indexCreatedVersionMajor
final java.lang.String name
final IndexOptions indexOptions
int position
int length
int numOverlap
int offset
int maxTermFrequency
int uniqueTermCount
int lastStartOffset
int lastPosition
AttributeSource attributeSource
OffsetAttribute offsetAttribute
PositionIncrementAttribute posIncrAttribute
PayloadAttribute payloadAttribute
TermToBytesRefAttribute termAttribute
TermFrequencyAttribute termFreqAttribute
public FieldInvertState(int indexCreatedVersionMajor, java.lang.String name, IndexOptions indexOptions)
public FieldInvertState(int indexCreatedVersionMajor, java.lang.String name, IndexOptions indexOptions, int position, int length, int numOverlap, int offset, int maxTermFrequency, int uniqueTermCount)
void reset()
void setAttributeSource(AttributeSource attributeSource)
public int getPosition()
public int getLength()
public void setLength(int length)
public int getNumOverlap()
positionIncrement == 0
.public void setNumOverlap(int numOverlap)
positionIncrement ==
0
.public int getOffset()
public int getMaxTermFrequency()
public int getUniqueTermCount()
public AttributeSource getAttributeSource()
AttributeSource
from the TokenStream
that provided the indexed tokens for this
field.public java.lang.String getName()
public int getIndexCreatedVersionMajor()
public IndexOptions getIndexOptions()