Class NodeTool

java.lang.Object
io.datarouter.storage.node.NodeTool

public class NodeTool
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    NodeTool()  
  • Method Summary

    Modifier and Type Method Description
    static void addNodeAndDescendants​(java.util.List<Node<?,​?,​?>> nodes, Node<?,​?,​?> parent)  
    static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​ D extends io.datarouter.model.databean.Databean<PK,​ D>,​ F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,​ D>>
    PhysicalNode<PK,​D,​F>
    extractSinglePhysicalNode​(Node<PK,​D,​F> node)  
    static java.util.List<Node<?,​?,​?>> getNodeAndDescendants​(Node<?,​?,​?> parent)  
    static Node<?,​?,​?> getUnderlyingNode​(Node<?,​?,​?> node)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • extractSinglePhysicalNode

      public static <PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​ D extends io.datarouter.model.databean.Databean<PK,​ D>,​ F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,​ D>> PhysicalNode<PK,​D,​F> extractSinglePhysicalNode​(Node<PK,​D,​F> node)
    • getNodeAndDescendants

      public static java.util.List<Node<?,​?,​?>> getNodeAndDescendants​(Node<?,​?,​?> parent)
    • addNodeAndDescendants

      public static void addNodeAndDescendants​(java.util.List<Node<?,​?,​?>> nodes, Node<?,​?,​?> parent)
    • getUnderlyingNode

      public static Node<?,​?,​?> getUnderlyingNode​(Node<?,​?,​?> node)