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
OffsetAttributeImpl — members 9+
C new()
C clear()
C copy_to(target)
M end_offset() int
M equals(other) boolean
M hash_code() int
C reflect_with(reflector)
C set_offset(start_offset, end_offset)
M start_offset() int
from AttributeImpl
M clone() AttributeImpl
C end()
M reflect_as_string(prepend_att_class) String

org.apache.lucene.analysis.tokenattributes.OffsetAttributeImpl

class extends AttributeImpl implements OffsetAttribute 9 members

Default implementation of OffsetAttribute.

Constructors

new

new ( )
Java: <init>()

Initialize this attribute with startOffset and endOffset of 0.

Instance Methods

clear

clear ( )
Java: clear()

copy_to

copy_to ( AttributeImpl target )
Java: copyTo(org.apache.lucene.util.AttributeImpl target)

end_offset

int end_offset ( )
Java: endOffset()

equals

boolean equals ( Object other )
Java: equals(Object other)

hash_code

int hash_code ( )
Java: hashCode()

reflect_with

reflect_with ( AttributeReflector reflector )
Java: reflectWith(org.apache.lucene.util.AttributeReflector reflector)

set_offset

set_offset ( int start_offset, int end_offset )
Java: setOffset(int startOffset, int endOffset)

start_offset

int start_offset ( )
Java: startOffset()

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.