Interface ObjRef
@PolarisImmutable
public interface ObjRef
Describes a reference to an object.
Note that the persisted object key is just the integer ID, the object type and numParts() attributes are rather hints.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjReffromByteBuffer(ByteBuffer bytes) static ObjReffromBytes(byte[] bytes) longid()Numeric ID of this object reference.intnumParts()Indicates the number of parts of which the object is split in the backing database.static ObjRefstatic ObjRefstatic ObjRefstatic ObjRefstatic ObjRefstatic intdefault intstatic ByteBufferserializeNullToByteBuffer(ByteBuffer target) default ByteBufferserializeToByteBuffer(ByteBuffer bytes) static ByteBufferskipObjId(ByteBuffer bytes) default ByteBufferdefault byte[]toBytes()type()Object type ID this object reference refers to.
-
Field Details
-
OBJ_REF_SERIALIZER
-
-
Method Details
-
objRef
-
objRef
-
objRef
-
objRef
-
objRef
-
type
Object type ID this object reference refers to. -
id
@Parameter(order=2) long id()Numeric ID of this object reference. -
numParts
@Parameter(order=3) @Auxiliary int numParts()Indicates the number of parts of which the object is split in the backing database. This value is available after the object has been written.This value is rather a hint than a strictly correct value. This value should be correct, but
Persistenceimplementations must expect the case that the real number of written parts is different. -
toByteBuffer
-
serializedNullSize
static int serializedNullSize() -
serializedSize
default int serializedSize() -
serializeNullToByteBuffer
-
serializeToByteBuffer
-
toBytes
default byte[] toBytes() -
skipObjId
-
fromByteBuffer
-
fromBytes
-