org.apache.lucene.analysis.tokenattributes
24
I
BytesTermAttribute
C
BytesTermAttributeImpl
I
CharTermAttribute
C
CharTermAttributeImpl
I
FlagsAttribute
C
FlagsAttributeImpl
I
KeywordAttribute
C
KeywordAttributeImpl
I
OffsetAttribute
C
OffsetAttributeImpl
C
PackedTokenAttributeImpl
I
PayloadAttribute
C
PayloadAttributeImpl
I
PositionIncrementAttribute
C
PositionIncrementAttributeImpl
I
PositionLengthAttribute
C
PositionLengthAttributeImpl
I
SentenceAttribute
C
SentenceAttributeImpl
I
TermFrequencyAttribute
C
TermFrequencyAttributeImpl
I
TermToBytesRefAttribute
I
TypeAttribute
C
TypeAttributeImpl
org.apache.lucene.analysis.tokenattributes. PositionLengthAttributeImpl
Default implementation of PositionLengthAttribute.
Constructors
new
Initializes this attribute with position length of 1.
Instance Methods
copy_to
copy_to
(
AttributeImpl target
)
Java: copyTo(org.apache.lucene.util.AttributeImpl target)
equals
boolean
equals
(
Object other
)
Java: equals(Object other)
hash_code
int
hash_code
(
)
Java: hashCode()
position_length
int
position_length
(
)
Java: getPositionLength() · also: get_position_length
position_length=
position_length=
(
int position_length
)
Java: setPositionLength(int positionLength) · also: set_position_length
reflect_with
reflect_with
(
AttributeReflector reflector
)
Java: reflectWith(org.apache.lucene.util.AttributeReflector reflector)
Inherited
clone
In most cases the clone is, and should be, deep in order to be able to properly capture the
state of all attributes.
end
Clears the values in this AttributeImpl and resets it to its value at the end of the field. If
this implementation implements more than one Attribute interface it clears all.
The default implementation simply calls #clear()
reflect_as_string
String
reflect_as_string
(
boolean prepend_att_class
)
Java: reflectAsString(boolean prependAttClass)
This method returns the current attribute values as a string in the following format by calling
the #reflectWith(AttributeReflector) method:
iff prependAttClass=true:
"AttributeClass#key=value,AttributeClass#key=value"
iff prependAttClass=false: "key=value,key=value"
this work for additional information regarding copyright ownership.