|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.util.AttributeSource
org.apache.lucene.analysis.TokenStream
lux.search.highlight.StreamingElementTokens
public final class StreamingElementTokens
Wraps a TokenStream, modifying its CharTermAttribute so as to return the original term, and the term prefixed by each of its enclosing element's QNames, in turn.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.lucene.util.AttributeSource |
|---|
org.apache.lucene.util.AttributeSource.AttributeFactory, org.apache.lucene.util.AttributeSource.State |
| Constructor Summary | |
|---|---|
StreamingElementTokens(org.apache.lucene.analysis.TokenStream tokens)
|
|
| Method Summary | |
|---|---|
boolean |
incrementToken()
|
boolean |
isPlainToken()
|
void |
popElement()
|
void |
pushElement(QName qname)
|
void |
reset()
|
void |
reset(org.apache.lucene.analysis.TokenStream tokens)
|
| Methods inherited from class org.apache.lucene.analysis.TokenStream |
|---|
close, end |
| Methods inherited from class org.apache.lucene.util.AttributeSource |
|---|
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamingElementTokens(org.apache.lucene.analysis.TokenStream tokens)
| Method Detail |
|---|
public boolean isPlainToken()
public void pushElement(QName qname)
public void popElement()
public boolean incrementToken()
throws IOException
incrementToken in class org.apache.lucene.analysis.TokenStreamIOException
public void reset(org.apache.lucene.analysis.TokenStream tokens)
throws IOException
IOException
public void reset()
throws IOException
reset in class org.apache.lucene.analysis.TokenStreamIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||