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 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
FieldsModifier and TypeFieldDescription(package private) intEnd offset of tokens arriving to this node.private final IntArrayList(package private) intWhich input node (index intoinputNodes) we will next output.(package private) intNode ID for this output, or -1 if we haven't been assigned yet.(package private) intStart offset of tokens leaving this node. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
inputNodes
-
node
int nodeNode ID for this output, or -1 if we haven't been assigned yet. -
nextOut
int nextOutWhich input node (index intoinputNodes) we will next output. -
startOffset
int startOffsetStart offset of tokens leaving this node. -
endOffset
int endOffsetEnd offset of tokens arriving to this node.
-
-
Constructor Details
-
OutputNode
private OutputNode()
-
-
Method Details
-
reset
public void reset()- Specified by:
resetin interfaceRollingBuffer.Resettable
-