public static final class LegacyNumericTokenStream.LegacyNumericTermAttributeImpl extends AttributeImpl implements LegacyNumericTokenStream.LegacyNumericTermAttribute, TermToBytesRefAttribute
LegacyNumericTokenStream.LegacyNumericTermAttribute
.Constructor and Description |
---|
LegacyNumericTermAttributeImpl()
Creates, but does not yet initialize this attribute instance
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
LegacyNumericTokenStream.LegacyNumericTermAttributeImpl |
clone() |
void |
copyTo(AttributeImpl target) |
boolean |
equals(Object obj) |
BytesRef |
getBytesRef() |
long |
getRawValue()
Returns current token's raw value as
long with all LegacyNumericTokenStream.LegacyNumericTermAttribute.getShift() applied, undefined before first token |
int |
getShift()
Returns current shift value, undefined before first token
|
int |
getValueSize()
Returns value size in bits (32 for
float , int ; 64 for double , 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(AttributeReflector reflector) |
void |
setShift(int shift)
Don't call this method!
|
end, reflectAsString
public LegacyNumericTermAttributeImpl()
init(long, int, int, int)
public BytesRef getBytesRef()
getBytesRef
in interface TermToBytesRefAttribute
public int getShift()
LegacyNumericTokenStream.LegacyNumericTermAttribute
getShift
in interface LegacyNumericTokenStream.LegacyNumericTermAttribute
public void setShift(int shift)
LegacyNumericTokenStream.LegacyNumericTermAttribute
setShift
in interface LegacyNumericTokenStream.LegacyNumericTermAttribute
public int incShift()
LegacyNumericTokenStream.LegacyNumericTermAttribute
incShift
in interface LegacyNumericTokenStream.LegacyNumericTermAttribute
public long getRawValue()
LegacyNumericTokenStream.LegacyNumericTermAttribute
long
with all LegacyNumericTokenStream.LegacyNumericTermAttribute.getShift()
applied, undefined before first tokengetRawValue
in interface LegacyNumericTokenStream.LegacyNumericTermAttribute
public int getValueSize()
LegacyNumericTokenStream.LegacyNumericTermAttribute
float
, int
; 64 for double
, long
)getValueSize
in interface LegacyNumericTokenStream.LegacyNumericTermAttribute
public void init(long value, int valueSize, int precisionStep, int shift)
LegacyNumericTokenStream.LegacyNumericTermAttribute
init
in interface LegacyNumericTokenStream.LegacyNumericTermAttribute
public void clear()
clear
in class AttributeImpl
public void reflectWith(AttributeReflector reflector)
reflectWith
in class AttributeImpl
public void copyTo(AttributeImpl target)
copyTo
in class AttributeImpl
public LegacyNumericTokenStream.LegacyNumericTermAttributeImpl clone()
clone
in class AttributeImpl
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.