Package org.apache.lucene.analysis.core
Class FlattenGraphFilter.OutputNode
- java.lang.Object
-
- org.apache.lucene.analysis.core.FlattenGraphFilter.OutputNode
-
- All Implemented Interfaces:
RollingBuffer.Resettable
- Enclosing class:
- FlattenGraphFilter
private static final class FlattenGraphFilter.OutputNode extends java.lang.Object implements RollingBuffer.Resettable
Gathers up merged input positions into a single output position, only for the current "frontier" of nodes we've seen but can't yet output because they are not frozen.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
endOffset
End offset of tokens arriving to this node.private IntArrayList
inputNodes
(package private) int
nextOut
Which input node (index intoinputNodes
) we will next output.(package private) int
node
Node ID for this output, or -1 if we haven't been assigned yet.(package private) int
startOffset
Start offset of tokens leaving this node.
-
Constructor Summary
Constructors Modifier Constructor Description private
OutputNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
reset()
-
-
-
Field Detail
-
inputNodes
private final IntArrayList inputNodes
-
node
int node
Node ID for this output, or -1 if we haven't been assigned yet.
-
nextOut
int nextOut
Which input node (index intoinputNodes
) we will next output.
-
startOffset
int startOffset
Start offset of tokens leaving this node.
-
endOffset
int endOffset
End offset of tokens arriving to this node.
-
-
Method Detail
-
reset
public void reset()
- Specified by:
reset
in interfaceRollingBuffer.Resettable
-
-