CLucene - a full-featured, c++ search engine
API Documentation


lucene::analysis::TokenStream Class Reference

A TokenStream enumerates the sequence of tokens, either from fields of a document or from query text. More...

#include <AnalysisHeader.h>

Inheritance diagram for lucene::analysis::TokenStream:

lucene::analysis::TokenFilter lucene::analysis::Tokenizer lucene::analysis::ISOLatin1AccentFilter lucene::analysis::LengthFilter lucene::analysis::LowerCaseFilter lucene::analysis::standard::StandardFilter lucene::analysis::StopFilter lucene::analysis::CharTokenizer lucene::analysis::KeywordTokenizer lucene::analysis::standard::StandardTokenizer

Public Member Functions

virtual bool next (Token *token)=0
 Sets token to the next token in the stream, returns false at the EOS.
virtual void close ()=0
 Releases resources associated with this stream.
virtual ~TokenStream ()
Tokennext ()
 This is for backwards compatibility only.

Detailed Description

A TokenStream enumerates the sequence of tokens, either from fields of a document or from query text.

This is an abstract class. Concrete subclasses are:


Constructor & Destructor Documentation

virtual lucene::analysis::TokenStream::~TokenStream (  )  [inline, virtual]


Member Function Documentation

virtual bool lucene::analysis::TokenStream::next ( Token token  )  [pure virtual]

virtual void lucene::analysis::TokenStream::close (  )  [pure virtual]

Releases resources associated with this stream.

Implemented in lucene::analysis::Tokenizer, and lucene::analysis::TokenFilter.

Token* lucene::analysis::TokenStream::next (  ) 

This is for backwards compatibility only.

You should pass the token you want to fill to next(), this will save a lot of object construction and destructions.

Deprecated:
. use next(token). Kept only to avoid breaking existing code.


The documentation for this class was generated from the following file:

clucene.sourceforge.net