org.apache.ignite.ml.dataset.impl.bootstrapping

## Class BootstrappedDatasetPartition

- java.lang.Object
- - org.apache.ignite.ml.dataset.impl.bootstrapping.BootstrappedDatasetPartition

- All Implemented Interfaces:
    AutoCloseable, Iterable<BootstrappedVector>

      public class BootstrappedDatasetPartition
      extends Object
      implements AutoCloseable, Iterable<BootstrappedVector>

  Partition of bootstrapped vectors.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BootstrappedDatasetPartition(BootstrappedVector[] vectors)` Creates an instance of BootstrappedDatasetPartition.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `BootstrappedVector` | `getRow(int rowId)` Returns vector from dataset in according to row id.
    `int` | `getRowsCount()` Returns rows count.
    `@NotNull Iterator<BootstrappedVector>` | `iterator()`

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

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

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, spliterator`

- - ### Constructor Detail

    - #### BootstrappedDatasetPartition

          public BootstrappedDatasetPartition(BootstrappedVector[] vectors)

      Creates an instance of BootstrappedDatasetPartition.
      Parameters:
        `vectors` - Vectors.

  - ### Method Detail

    - #### getRow

          public BootstrappedVector getRow(int rowId)

      Returns vector from dataset in according to row id.
      Parameters:
        `rowId` - Row id.
      Returns:
        Vector.

    - #### getRowsCount

          public int getRowsCount()

      Returns rows count.
      Returns:
        Rows count.

    - #### iterator

          @NotNull
          public @NotNull Iterator<BootstrappedVector> iterator()

      Specified by:
        `iterator` in interface `Iterable<BootstrappedVector>`

    - #### close

          public void close()

      Specified by:
        `close` in interface `AutoCloseable`

2022 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.12.0
Release Date | : January 10 2022