After going through all lucene api docs, im still confused over one thing:

How does a TokenStream/AttributeSource actually stores the attributes. Does
it maintains a list of all attributes, like:

List<CharTermAttribute> termAttList;
List<PositionIncrementAttribute> posnAttList;
........
........

Since, it is mentioned all over the API javadocs that all AttributeSources
maintain a single instance of an Attribute, then, how does a stream of
tokens(CharTermAttribute better),positions,offsets is stored internally.


Any pointers?


Regards
Pravesh



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Lucene-Token-Attributes-internal-data-structure-tp4110668.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to