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 of
LegacyNumericTokenStream.LegacyNumericTermAttribute.- Since:
- 4.0
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates, but does not yet initialize this attribute instance -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()voidcopyTo(org.apache.lucene.util.AttributeImpl target) booleanorg.apache.lucene.util.BytesReflongReturns current token's raw value aslongwith allLegacyNumericTokenStream.LegacyNumericTermAttribute.getShift()applied, undefined before first tokenintgetShift()Returns current shift value, undefined before first tokenintReturns 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!Methods inherited from class org.apache.lucene.util.AttributeImpl
end, reflectAsString
-
Constructor Details
-
LegacyNumericTermAttributeImpl
public LegacyNumericTermAttributeImpl()Creates, but does not yet initialize this attribute instance- See Also:
-
-
Method Details
-
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
- Overrides:
clonein classorg.apache.lucene.util.AttributeImpl
-
hashCode
public int hashCode() -
equals
-