jruby/docs BETA
Navigation
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
PositionLengthAttributeImpl — members 8+
C new()
C clear()
C copy_to(target)
M equals(other) boolean
M hash_code() int
M position_length() int
C position_length=(position_length)
C reflect_with(reflector)
from AttributeImpl
M clone() AttributeImpl
C end()
M reflect_as_string(prepend_att_class) String

org.apache.lucene.analysis.tokenattributes.PositionLengthAttributeImpl

class extends AttributeImpl implements PositionLengthAttribute 8 members

Default implementation of PositionLengthAttribute.

Constructors

new

new ( )
Java: <init>()

Initializes this attribute with position length of 1.

Instance Methods

clear

clear ( )
Java: clear()

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

from AttributeImpl

clone

AttributeImpl clone ( )
Java: 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

end ( )
Java: 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.