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) int
Maximum to input node for all tokens leaving here; we use this to know when we can freeze.(package private) int
Minimum to input node for all tokens leaving here; we use this to check if holes exist.(package private) int
Which token (index intotokens
) we will next output.(package private) int
Our input node, or -1 if we haven't been assigned yet(package private) int
Where 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:
reset
in interfaceRollingBuffer.Resettable
-