Package io.ray.api.id
Class PlacementGroupId
java.lang.Object
io.ray.api.id.BaseId
io.ray.api.id.PlacementGroupId
- All Implemented Interfaces:
Serializable
Represents the id of a placement group.
- See Also:
- Serialized Form
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PlacementGroupIdfromByteBuffer(ByteBuffer bb)Creates a PlacementGroupId from the given ByteBuffer.static PlacementGroupIdfromBytes(byte[] bytes)Create a PlacementGroupId instance according to the given bytes.static PlacementGroupIdGenerate an PlacementGroupId with random 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
-
fromByteBuffer
Creates a PlacementGroupId from the given ByteBuffer. -
fromBytes
Create a PlacementGroupId instance according to the given bytes. -
fromRandom
Generate an PlacementGroupId with random value. Used for local mode and test only. -
size
public int size()Description copied from class:BaseIdDerived class should implement this function.
-