public final class MockGraphTokenFilter extends LookaheadTokenFilter<LookaheadTokenFilter.Position>
LookaheadTokenFilter.Position
AttributeSource.AttributeFactory, AttributeSource.State
end, inputPos, offsetAtt, outputPos, posIncAtt, positions, posLenAtt
input
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.
|
boolean |
incrementToken() |
protected LookaheadTokenFilter.Position |
newPosition() |
void |
reset() |
insertToken, nextToken, peekToken
close, end
addAttribute, addAttributeImpl, captureState, clearAttributes, cloneAttributes, copyTo, equals, getAttribute, getAttributeClassesIterator, getAttributeFactory, getAttributeImplsIterator, hasAttribute, hasAttributes, hashCode, reflectAsString, reflectWith, restoreState
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 boolean incrementToken() throws IOException
incrementToken
in class TokenStream
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.