Package org.apache.lucene.analysis
Interface NumericTokenStream.NumericTermAttribute
-
- All Superinterfaces:
Attribute
- All Known Implementing Classes:
NumericTokenStream.NumericTermAttributeImpl
- Enclosing class:
- NumericTokenStream
public static interface NumericTokenStream.NumericTermAttribute extends Attribute
Expert: Use this attribute to get the details of the currently generated token.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getRawValue()
Returns current token's raw value aslong
with allgetShift()
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
incShift()
Don't call this method!void
init(long value, int valSize, int precisionStep, int shift)
Don't call this method!void
setShift(int shift)
Don't call this method!
-
-
-
Method Detail
-
getShift
int getShift()
Returns current shift value, undefined before first token
-
getRawValue
long getRawValue()
Returns current token's raw value aslong
with 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!
-
setShift
void setShift(int shift)
Don't call this method!
-
incShift
int incShift()
Don't call this method!
-
-