Class ResourceInformation

Object
org.apache.spark.resource.ResourceInformation
All Implemented Interfaces:
Serializable, scala.Serializable

public class ResourceInformation extends Object implements scala.Serializable
Class to hold information about a type of Resource. A resource could be a GPU, FPGA, etc. The array of addresses are resource specific and its up to the user to interpret the address.

One example is GPUs, where the addresses would be the indices of the GPUs

param: name the name of the resource param: addresses an array of strings describing the addresses of the resource

Since:
3.0.0
See Also:
  • Constructor Details

    • ResourceInformation

      public ResourceInformation(String name, String[] addresses)
  • Method Details