java.lang.Object
org.postgresql.pljava.pg.DatumUtils
Implementations of
Datum.Accessor
and a collection of related
static methods.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
addressOf
(ByteBuffer bb) static ByteBuffer
static long
fetchPointer
(ByteBuffer bb, int offset) static TupleTableSlot.Indexed
indexedTupleSlot
(RegType type, int elements, ByteBuffer nulls, ByteBuffer values) static int
inspectVarlena
(ByteBuffer bb, int offset) For now, just return the inline size (the size to be skipped if stepping over this varlena in a heap tuple).static ByteBuffer
mapCString
(ByteBuffer bb, int offset) static ByteBuffer
mapFixedLength
(ByteBuffer bb, int offset, int length) static void
storePointer
(ByteBuffer bb, int offset, long value)
-
Constructor Details
-
DatumUtils
public DatumUtils()
-
-
Method Details
-
indexedTupleSlot
public static TupleTableSlot.Indexed indexedTupleSlot(RegType type, int elements, ByteBuffer nulls, ByteBuffer values) -
addressOf
-
fetchPointer
-
storePointer
-
asReadOnlyNativeOrder
-
mapFixedLength
-
mapCString
-
inspectVarlena
For now, just return the inline size (the size to be skipped if stepping over this varlena in a heap tuple).This is a reimplementation of some of the top of
postgres.h
, so that this common operation can be done without a JNI call to the C code.
-