public final class CompletionTokenStream extends TokenFilter
ConcatenateGraphFilter but we can set the payload and provide access to config options.AttributeSource.StateinputDEFAULT_TOKEN_ATTRIBUTE_FACTORY| Modifier and Type | Method and Description |
|---|---|
boolean |
incrementToken() |
void |
setPayload(BytesRef payload)
Sets a payload available throughout successive token stream enumeration
|
Automaton |
toAutomaton()
Delegates to...At
|
Automaton |
toAutomaton(boolean unicodeAware)
Delegates to...
|
close, end, resetaddAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toStringpublic void setPayload(BytesRef payload)
public boolean incrementToken()
throws IOException
incrementToken in class TokenStreamIOExceptionpublic Automaton toAutomaton() throws IOException
IOExceptionConcatenateGraphFilter.toAutomaton()public Automaton toAutomaton(boolean unicodeAware) throws IOException
IOExceptionConcatenateGraphFilter.toAutomaton(boolean)Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.