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 java.lang.Object implements RollingBuffer.Resettable
Holds all tokens leaving a given input position.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
maxToNode
Maximum to input node for all tokens leaving here; we use this to know when we can freeze.(package private) int
minToNode
Minimum to input node for all tokens leaving here; we use this to check if holes exist.(package private) int
nextOut
Which token (index intotokens
) we will next output.(package private) int
node
Our input node, or -1 if we haven't been assigned yet(package private) int
outputNode
Where we currently map to; this changes (can only increase as we see more input tokens), until we are finished with this position.private java.util.List<AttributeSource.State>
tokens
-
Constructor Summary
Constructors Modifier Constructor Description private
InputNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
reset()
-
-
-
Field Detail
-
tokens
private final java.util.List<AttributeSource.State> tokens
-
node
int node
Our input node, or -1 if we haven't been assigned yet
-
maxToNode
int maxToNode
Maximum to input node for all tokens leaving here; we use this to know when we can freeze.
-
minToNode
int minToNode
Minimum to input node for all tokens leaving here; we use this to check if holes exist.
-
outputNode
int outputNode
Where we currently map to; this changes (can only increase as we see more input tokens), until we are finished with this position.
-
nextOut
int nextOut
Which token (index intotokens
) we will next output.
-
-
Method Detail
-
reset
public void reset()
- Specified by:
reset
in interfaceRollingBuffer.Resettable
-
-