Package io.ray.api.id
Class JobId
java.lang.Object
io.ray.api.id.BaseId
io.ray.api.id.JobId
- All Implemented Interfaces:
Serializable
Represents the id of a Ray job.
- See Also:
- Serialized Form
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic JobIdfromByteBuffer(ByteBuffer bb)Creates a JobId from the given ByteBuffer.static JobIdfromBytes(byte[] bytes)Create a JobId from byte array.static JobIdfromHexString(String hex)Create a JobId from a given hex string.static JobIdfromInt(int value)intsize()Derived class should implement this function.Methods inherited from class io.ray.api.id.BaseId
byteBuffer2Bytes, equals, getBytes, hashCode, hexString2Bytes, isNil, toByteBuffer, toString
-
Field Details
-
LENGTH
public static final int LENGTH- See Also:
- Constant Field Values
-
NIL
-
-
Method Details
-
fromBytes
Create a JobId from byte array. -
fromHexString
Create a JobId from a given hex string. -
fromByteBuffer
Creates a JobId from the given ByteBuffer. -
fromInt
-
size
public int size()Description copied from class:BaseIdDerived class should implement this function.
-