Packages

c

org.apache.spark.resource

ResourceInformation

class ResourceInformation extends 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

Annotations
@Evolving()
Source
ResourceInformation.scala
Since

3.0.0

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResourceInformation
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResourceInformation(name: String, addresses: Array[String])

    name

    the name of the resource

    addresses

    an array of strings describing the addresses of the resource

Value Members

  1. val addresses: Array[String]
  2. def equals(obj: Any): Boolean
    Definition Classes
    ResourceInformation → AnyRef → Any
  3. def hashCode(): Int
    Definition Classes
    ResourceInformation → AnyRef → Any
  4. val name: String
  5. final def toJson(): JValue
  6. def toString(): String
    Definition Classes
    ResourceInformation → AnyRef → Any