public final class MockGraphTokenFilter extends LookaheadTokenFilter<LookaheadTokenFilter.Position>
LookaheadTokenFilter.Position
AttributeSource.State
end, inputPos, offsetAtt, outputPos, posIncAtt, positions, posLenAtt
input
DEFAULT_TOKEN_ATTRIBUTE_FACTORY
Constructor and Description |
---|
MockGraphTokenFilter(Random random,
TokenStream input) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterPosition()
This is called when all input tokens leaving a given
position have been returned.
|
void |
close() |
boolean |
incrementToken() |
protected LookaheadTokenFilter.Position |
newPosition() |
void |
reset() |
insertToken, nextToken, peekToken
end
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, endAttributes, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, removeAllAttributes, restoreState, toString
public MockGraphTokenFilter(Random random, TokenStream input)
protected LookaheadTokenFilter.Position newPosition()
newPosition
in class LookaheadTokenFilter<LookaheadTokenFilter.Position>
protected void afterPosition() throws IOException
LookaheadTokenFilter
afterPosition
in class LookaheadTokenFilter<LookaheadTokenFilter.Position>
IOException
public void reset() throws IOException
reset
in class LookaheadTokenFilter<LookaheadTokenFilter.Position>
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class TokenFilter
IOException
public boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.