Package org.apache.solr.legacy
Interface LegacyNumericTokenStream.LegacyNumericTermAttribute
- All Superinterfaces:
org.apache.lucene.util.Attribute
- All Known Implementing Classes:
LegacyNumericTokenStream.LegacyNumericTermAttributeImpl
- Enclosing class:
LegacyNumericTokenStream
public static interface LegacyNumericTokenStream.LegacyNumericTermAttribute
extends org.apache.lucene.util.Attribute
Expert: Use this attribute to get the details of the currently generated token.
- Since:
- 4.0
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns current token's raw value aslongwith allgetShift()applied, undefined before first tokenintgetShift()Returns current shift value, undefined before first tokenintReturns value size in bits (32 forfloat,int; 64 fordouble,long)intincShift()Don't call this method!voidinit(long value, int valSize, int precisionStep, int shift) Don't call this method!voidsetShift(int shift) Don't call this method!
-
Method Details
-
getShift
int getShift()Returns current shift value, undefined before first token -
getRawValue
long getRawValue()Returns current token's raw value aslongwith allgetShift()applied, undefined before first token -
getValueSize
int getValueSize()Returns value size in bits (32 forfloat,int; 64 fordouble,long) -
init
void init(long value, int valSize, int precisionStep, int shift) Don't call this method!- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
setShift
void setShift(int shift) Don't call this method!- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
incShift
int incShift()Don't call this method!- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-