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

    Fields
    Modifier and Type
    Field
    Description
    (package private) int
    End offset of tokens arriving to this node.
    private final List<Integer>
     
    (package private) int
    Which input node (index into inputNodes) we will next output.
    (package private) int
    Node ID for this output, or -1 if we haven't been assigned yet.
    (package private) int
    Start offset of tokens leaving this node.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • inputNodes

      private final List<Integer> 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 into inputNodes) 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.
  • Constructor Details

    • OutputNode

      private OutputNode()
  • Method Details