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

    Fields
    Modifier and Type
    Field
    Description
    (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 into tokens) 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.
     
  • 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

    • tokens

      private final 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 into tokens) we will next output.
  • Constructor Details

    • InputNode

      private InputNode()
  • Method Details