Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
7 #ifndef NUMERICTOKENSTREAM_H
8 #define NUMERICTOKENSTREAM_H
NumericTokenStreamPtr setLongValue(int64_t value)
Initializes the token stream with the supplied long value.
int32_t shift
Definition: NumericTokenStream.h:82
#define LUCENE_CLASS(Name)
Definition: LuceneObject.h:24
TermAttributePtr termAtt
Definition: NumericTokenStream.h:75
virtual void reset()
Resets this stream to the beginning. This is an optional operation, so subclasses may or may not impl...
boost::shared_ptr< NumericTokenStream > NumericTokenStreamPtr
Definition: LuceneTypes.h:39
NumericTokenStream()
Creates a token stream for numeric values using the default precisionStep {} (4). The stream is not y...
A TokenStream enumerates the sequence of tokens, either from Fields of a Document or from query text.
Definition: TokenStream.h:44
PositionIncrementAttributePtr posIncrAtt
Definition: NumericTokenStream.h:80
boost::shared_ptr< PositionIncrementAttribute > PositionIncrementAttributePtr
Definition: LuceneTypes.h:45
int32_t precisionStep
Definition: NumericTokenStream.h:84
int32_t valSize
Definition: NumericTokenStream.h:83
virtual ~NumericTokenStream()
Definition: AbstractAllTermDocs.h:12
static const String & TOKEN_TYPE_FULL_PREC()
The full precision token gets this token type assigned.
boost::shared_ptr< AttributeSource > AttributeSourcePtr
Definition: LuceneTypes.h:520
int64_t value
Definition: NumericTokenStream.h:86
NumericTokenStreamPtr setDoubleValue(double value)
Initializes the token stream with the supplied double value.
virtual String toString()
Returns a string representation of the object.
virtual bool incrementToken()
Consumers (ie., IndexWriter) use this method to advance the stream to the next token....
boost::shared_ptr< TermAttribute > TermAttributePtr
Definition: LuceneTypes.h:58
boost::shared_ptr< TypeAttribute > TypeAttributePtr
Definition: LuceneTypes.h:64
NumericTokenStreamPtr setIntValue(int32_t value)
Initializes the token stream with the supplied int value.
This class provides a TokenStream for indexing numeric values that can be used by NumericRangeQuery o...
Definition: NumericTokenStream.h:52
NumericTokenStream(int32_t precisionStep)
Creates a token stream for numeric values with the specified precisionStep. The stream is not yet ini...
NumericTokenStream(const AttributeSourcePtr &source, int32_t precisionStep)
Creates a token stream for numeric values with the specified precisionStep using the given {}....
static const String & TOKEN_TYPE_LOWER_PREC()
The lower precision tokens gets this token type assigned.
boost::shared_ptr< AttributeFactory > AttributeFactoryPtr
Definition: LuceneTypes.h:519
TypeAttributePtr typeAtt
Definition: NumericTokenStream.h:79
NumericTokenStream(const AttributeFactoryPtr &factory, int32_t precisionStep)
Creates a token stream for numeric values with the specified precisionStep using the given {}....
clucene.sourceforge.net