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 SummaryConstructors Constructor Description LegacyNumericTermAttributeImpl()Creates, but does not yet initialize this attribute instance
 - 
Method SummaryAll 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- 
LegacyNumericTermAttributeImplpublic LegacyNumericTermAttributeImpl() Creates, but does not yet initialize this attribute instance- See Also:
- init(long, int, int, int)
 
 
- 
 - 
Method Detail- 
getBytesRefpublic org.apache.lucene.util.BytesRef getBytesRef() - Specified by:
- getBytesRefin interface- org.apache.lucene.analysis.tokenattributes.TermToBytesRefAttribute
 
 - 
getShiftpublic int getShift() Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttributeReturns current shift value, undefined before first token- Specified by:
- getShiftin interface- LegacyNumericTokenStream.LegacyNumericTermAttribute
 
 - 
setShiftpublic void setShift(int shift) Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttributeDon't call this method!- Specified by:
- setShiftin interface- LegacyNumericTokenStream.LegacyNumericTermAttribute
 
 - 
incShiftpublic int incShift() Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttributeDon't call this method!- Specified by:
- incShiftin interface- LegacyNumericTokenStream.LegacyNumericTermAttribute
 
 - 
getRawValuepublic 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 interface- LegacyNumericTokenStream.LegacyNumericTermAttribute
 
 - 
getValueSizepublic int getValueSize() Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttributeReturns value size in bits (32 forfloat,int; 64 fordouble,long)- Specified by:
- getValueSizein interface- LegacyNumericTokenStream.LegacyNumericTermAttribute
 
 - 
initpublic void init(long value, int valueSize, int precisionStep, int shift)Description copied from interface:LegacyNumericTokenStream.LegacyNumericTermAttributeDon't call this method!- Specified by:
- initin interface- LegacyNumericTokenStream.LegacyNumericTermAttribute
 
 - 
clearpublic void clear() - Specified by:
- clearin class- org.apache.lucene.util.AttributeImpl
 
 - 
reflectWithpublic void reflectWith(org.apache.lucene.util.AttributeReflector reflector) - Specified by:
- reflectWithin class- org.apache.lucene.util.AttributeImpl
 
 - 
copyTopublic void copyTo(org.apache.lucene.util.AttributeImpl target) - Specified by:
- copyToin class- org.apache.lucene.util.AttributeImpl
 
 - 
clonepublic LegacyNumericTokenStream.LegacyNumericTermAttributeImpl clone() - Overrides:
- clonein class- org.apache.lucene.util.AttributeImpl
 
 
- 
 
-