Interface TreeIndex.NodeFactory<N extends AbstractNode>

Type Parameters:
N - the factory-specific AbstractNode subtype
Enclosing class:
TreeIndex<N extends AbstractNode>

public static interface TreeIndex.NodeFactory<N extends AbstractNode>
A node factory for a TreeIndex. This controls the return type of the tree-index's various getNode member functions.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    init(TreeIndex<N> host)
    Optional initialization.
    newNode(int level, int index, boolean right)
    Returns an implementation-specific node at the given coordinates.
  • Method Details

    • init

      default void init(TreeIndex<N> host)
      Optional initialization. Avoid this pattern (overridding this). Default is noop.
    • newNode

      N newNode(int level, int index, boolean right)
      Returns an implementation-specific node at the given coordinates. The coordinates are already validated by the calling TreeIndex instance.