Package org.apache.solr.legacy
Class LegacyNumericTokenStream.LegacyNumericTermAttributeImpl
- java.lang.Object
-
- org.apache.lucene.util.AttributeImpl
-
- org.apache.solr.legacy.LegacyNumericTokenStream.LegacyNumericTermAttributeImpl
-
- All Implemented Interfaces:
Cloneable
,org.apache.lucene.analysis.tokenattributes.TermToBytesRefAttribute
,org.apache.lucene.util.Attribute
,LegacyNumericTokenStream.LegacyNumericTermAttribute
- Enclosing class:
- LegacyNumericTokenStream
public static final class LegacyNumericTokenStream.LegacyNumericTermAttributeImpl extends org.apache.lucene.util.AttributeImpl implements LegacyNumericTokenStream.LegacyNumericTermAttribute, org.apache.lucene.analysis.tokenattributes.TermToBytesRefAttribute
Implementation ofLegacyNumericTokenStream.LegacyNumericTermAttribute
.- Since:
- 4.0
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description LegacyNumericTermAttributeImpl()
Creates, but does not yet initialize this attribute instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
LegacyNumericTokenStream.LegacyNumericTermAttributeImpl
clone()
void
copyTo(org.apache.lucene.util.AttributeImpl target)
boolean
equals(Object obj)
org.apache.lucene.util.BytesRef
getBytesRef()
long
getRawValue()
Returns current token's raw value aslong
with allLegacyNumericTokenStream.LegacyNumericTermAttribute.getShift()
applied, undefined before first tokenint
getShift()
Returns current shift value, undefined before first tokenint
getValueSize()
Returns value size in bits (32 forfloat
,int
; 64 fordouble
,long
)int
hashCode()
int
incShift()
Don't call this method!void
init(long value, int valueSize, int precisionStep, int shift)
Don't call this method!void
reflectWith(org.apache.lucene.util.AttributeReflector reflector)
void
setShift(int shift)
Don't call this method!
-
-
-
Constructor Detail
-
LegacyNumericTermAttributeImpl
public LegacyNumericTermAttributeImpl()
Creates, but does not yet initialize this attribute instance- See Also:
init(long, int, int, int)
-
-
Method Detail
-
getBytesRef
public org.apache.lucene.util.BytesRef getBytesRef()
- Specified by:
getBytesRef
in interfaceorg.apache.lucene.analysis.tokenattributes.TermToBytesRefAttribute
-
getShift
public int getShift()
Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttribute
Returns current shift value, undefined before first token- Specified by:
getShift
in interfaceLegacyNumericTokenStream.LegacyNumericTermAttribute
-
setShift
public void setShift(int shift)
Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttribute
Don't call this method!- Specified by:
setShift
in interfaceLegacyNumericTokenStream.LegacyNumericTermAttribute
-
incShift
public int incShift()
Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttribute
Don't call this method!- Specified by:
incShift
in interfaceLegacyNumericTokenStream.LegacyNumericTermAttribute
-
getRawValue
public long getRawValue()
Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttribute
Returns current token's raw value aslong
with allLegacyNumericTokenStream.LegacyNumericTermAttribute.getShift()
applied, undefined before first token- Specified by:
getRawValue
in interfaceLegacyNumericTokenStream.LegacyNumericTermAttribute
-
getValueSize
public int getValueSize()
Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttribute
Returns value size in bits (32 forfloat
,int
; 64 fordouble
,long
)- Specified by:
getValueSize
in interfaceLegacyNumericTokenStream.LegacyNumericTermAttribute
-
init
public void init(long value, int valueSize, int precisionStep, int shift)
Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttribute
Don't call this method!- Specified by:
init
in interfaceLegacyNumericTokenStream.LegacyNumericTermAttribute
-
clear
public void clear()
- Specified by:
clear
in classorg.apache.lucene.util.AttributeImpl
-
reflectWith
public void reflectWith(org.apache.lucene.util.AttributeReflector reflector)
- Specified by:
reflectWith
in classorg.apache.lucene.util.AttributeImpl
-
copyTo
public void copyTo(org.apache.lucene.util.AttributeImpl target)
- Specified by:
copyTo
in classorg.apache.lucene.util.AttributeImpl
-
clone
public LegacyNumericTokenStream.LegacyNumericTermAttributeImpl clone()
- Overrides:
clone
in classorg.apache.lucene.util.AttributeImpl
-
-