Package org.apache.spark.resource
Class ResourceInformation
Object
org.apache.spark.resource.ResourceInformation
- All Implemented Interfaces:
- 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionString[]booleaninthashCode()name()static ResourceInformationParses a JSON string into aResourceInformationinstance.static ResourceInformationparseJson(org.json4s.JValue json) final org.json4s.JValuetoJson()toString()
- 
Constructor Details- 
ResourceInformation
 
- 
- 
Method Details- 
parseJsonParses a JSON string into aResourceInformationinstance.- Parameters:
- json- (undocumented)
- Returns:
- (undocumented)
 
- 
parseJson
- 
name
- 
addresses
- 
toString
- 
equals
- 
hashCodepublic int hashCode()
- 
toJsonpublic final org.json4s.JValue toJson()
 
-