Package org.apache.lucene.analysis.core
Class FlattenGraphFilter.InputNode
java.lang.Object
org.apache.lucene.analysis.core.FlattenGraphFilter.InputNode
- All Implemented Interfaces:
RollingBuffer.Resettable
- Enclosing class:
FlattenGraphFilter
private static final class FlattenGraphFilter.InputNode
extends Object
implements RollingBuffer.Resettable
Holds all tokens leaving a given input position.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) intMaximum to input node for all tokens leaving here; we use this to know when we can freeze.(package private) intMinimum to input node for all tokens leaving here; we use this to check if holes exist.(package private) intWhich token (index intotokens) we will next output.(package private) intOur input node, or -1 if we haven't been assigned yet(package private) intWhere we currently map to; this changes (can only increase as we see more input tokens), until we are finished with this position.private final List<AttributeSource.State> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
tokens
-
node
int nodeOur input node, or -1 if we haven't been assigned yet -
maxToNode
int maxToNodeMaximum to input node for all tokens leaving here; we use this to know when we can freeze. -
minToNode
int minToNodeMinimum to input node for all tokens leaving here; we use this to check if holes exist. -
outputNode
int outputNodeWhere we currently map to; this changes (can only increase as we see more input tokens), until we are finished with this position. -
nextOut
int nextOutWhich token (index intotokens) we will next output.
-
-
Constructor Details
-
InputNode
private InputNode()
-
-
Method Details
-
reset
public void reset()- Specified by:
resetin interfaceRollingBuffer.Resettable
-