Class GPUInfo
- java.lang.Object
-
- org.apache.flink.externalresource.gpu.GPUInfo
-
- All Implemented Interfaces:
ExternalResourceInfo
public class GPUInfo extends Object implements ExternalResourceInfo
Information for GPU resource. Currently only including the GPU index.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Collection<String>
getKeys()
Get all property keys.Optional<String>
getProperty(String key)
Get the property indicated by the specified key.int
hashCode()
String
toString()
-
-
-
Method Detail
-
getProperty
public Optional<String> getProperty(String key)
Description copied from interface:ExternalResourceInfo
Get the property indicated by the specified key.- Specified by:
getProperty
in interfaceExternalResourceInfo
- Parameters:
key
- of the required property- Returns:
- an
Optional
containing the value associated to the key, or an emptyOptional
if no value has been stored under the given key
-
getKeys
public Collection<String> getKeys()
Description copied from interface:ExternalResourceInfo
Get all property keys.- Specified by:
getKeys
in interfaceExternalResourceInfo
- Returns:
- collection of all property keys
-
-