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(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)`
    `int` | `hashCode()`
    `long` | `nodeId()`
    `int` | `treeId()`

    - ### 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.

  - ### Method Detail

    - #### treeId

          public int treeId()

      Returns:
        Tree id.

    - #### nodeId

          public long nodeId()

      Returns:
        Node id.

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

2020 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.9.1
Release Date | : December 9 2020