Package io.ray.api.id
Class TaskId
java.lang.Object
io.ray.api.id.BaseId
io.ray.api.id.TaskId
- All Implemented Interfaces:
Serializable
Represents the id of a Ray task.
- See Also:
- Serialized Form
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskIdfromByteBuffer(ByteBuffer bb)Creates a TaskId from a ByteBuffer.static TaskIdfromBytes(byte[] bytes)Creates a TaskId from given bytes.static TaskIdfromHexString(String hex)Create a TaskId from a hex string.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
-
UNIQUE_BYTES_LENGTH
public static final int UNIQUE_BYTES_LENGTH- See Also:
- Constant Field Values
-
LENGTH
public static final int LENGTH- See Also:
- Constant Field Values
-
NIL
-
-
Method Details
-
fromHexString
Create a TaskId from a hex string. -
fromByteBuffer
Creates a TaskId from a ByteBuffer. -
fromBytes
Creates a TaskId from given bytes. -
size
public int size()Description copied from class:BaseIdDerived class should implement this function.
-