org.apache.ignite.ml.tree.randomforest.data

## Class NodeId

- java.lang.Object
- - org.apache.ignite.ml.tree.randomforest.data.NodeId

- All Implemented Interfaces:
    Serializable

      public class NodeId
      extends Object
      implements Serializable

  Class represents Node id in Random Forest consisting of tree id and node id in tree in according to breadth-first search in tree.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NodeId()`
    `NodeId(int treeId, long nodeId)` Create an instance of NodeId.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `long` | `getNodeId()`
    `int` | `getTreeId()`
    `int` | `hashCode()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NodeId

          public NodeId(int treeId,
                        long nodeId)

      Create an instance of NodeId.
      Parameters:
        `treeId` - Tree id.
        `nodeId` - Node id.

    - #### NodeId

          public NodeId()

  - ### Method Detail

    - #### getTreeId

          public int getTreeId()

      Returns:
        Tree id.

    - #### getNodeId

          public long getNodeId()

      Returns:
        Node id.

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

2021 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.11.0
Release Date | : September 11 2021