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 voidclear()LegacyNumericTokenStream.LegacyNumericTermAttributeImplclone()voidcopyTo(org.apache.lucene.util.AttributeImpl target)booleanequals(Object obj)org.apache.lucene.util.BytesRefgetBytesRef()longgetRawValue()Returns current token's raw value aslongwith allLegacyNumericTokenStream.LegacyNumericTermAttribute.getShift()applied, undefined before first tokenintgetShift()Returns current shift value, undefined before first tokenintgetValueSize()Returns value size in bits (32 forfloat,int; 64 fordouble,long)inthashCode()intincShift()Don't call this method!voidinit(long value, int valueSize, int precisionStep, int shift)Don't call this method!voidreflectWith(org.apache.lucene.util.AttributeReflector reflector)voidsetShift(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:
getBytesRefin interfaceorg.apache.lucene.analysis.tokenattributes.TermToBytesRefAttribute
-
getShift
public int getShift()
Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttributeReturns current shift value, undefined before first token- Specified by:
getShiftin interfaceLegacyNumericTokenStream.LegacyNumericTermAttribute
-
setShift
public void setShift(int shift)
Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttributeDon't call this method!- Specified by:
setShiftin interfaceLegacyNumericTokenStream.LegacyNumericTermAttribute
-
incShift
public int incShift()
Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttributeDon't call this method!- Specified by:
incShiftin interfaceLegacyNumericTokenStream.LegacyNumericTermAttribute
-
getRawValue
public long getRawValue()
Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttributeReturns current token's raw value aslongwith allLegacyNumericTokenStream.LegacyNumericTermAttribute.getShift()applied, undefined before first token- Specified by:
getRawValuein interfaceLegacyNumericTokenStream.LegacyNumericTermAttribute
-
getValueSize
public int getValueSize()
Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttributeReturns value size in bits (32 forfloat,int; 64 fordouble,long)- Specified by:
getValueSizein interfaceLegacyNumericTokenStream.LegacyNumericTermAttribute
-
init
public void init(long value, int valueSize, int precisionStep, int shift)Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttributeDon't call this method!- Specified by:
initin interfaceLegacyNumericTokenStream.LegacyNumericTermAttribute
-
clear
public void clear()
- Specified by:
clearin classorg.apache.lucene.util.AttributeImpl
-
reflectWith
public void reflectWith(org.apache.lucene.util.AttributeReflector reflector)
- Specified by:
reflectWithin classorg.apache.lucene.util.AttributeImpl
-
copyTo
public void copyTo(org.apache.lucene.util.AttributeImpl target)
- Specified by:
copyToin classorg.apache.lucene.util.AttributeImpl
-
clone
public LegacyNumericTokenStream.LegacyNumericTermAttributeImpl clone()
- Overrides:
clonein classorg.apache.lucene.util.AttributeImpl
-
-