- All Known Subinterfaces:
TupleTableSlot.Indexed
PL/Java may take the liberty of extending this class to present even some other tuple-like things that are not native tuple forms to PostgreSQL.
A readable instance that relies on PostgreSQL's "deforming" can be
constructed over any supported flavor of underlying tuple. Retrieving
its values can involve JNI calls to the support functions in PostgreSQL.
Its writable counterpart is also what must be used for constructing a tuple
on the fly; after its values/nulls have been set (pure Java), it can be
flattened (at the cost of a JNI call) to return a pass-by-reference
Datum
usable as a composite function argument or return value.
A specialized instance, with support only for reading, can be constructed over a PostgreSQL tuple in its widely-used 'heap' form. PL/Java knows that form well enough to walk it and retrieve values mostly without JNI calls.
A TupleTableSlot
is not safe for concurrent use by multiple threads,
in the absence of appropriate synchronization.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A form ofTupleTableSlot
consisting of a number of indexable elements all of the same type, described by the singleAttribute
of a one-elementTupleDescriptor
. -
Method Summary
Modifier and TypeMethodDescription<T> T
get
(int idx, Adapter.As<T, ?> adapter) boolean
get
(int idx, Adapter.AsBoolean<?> adapter) byte
get
(int idx, Adapter.AsByte<?> adapter) char
get
(int idx, Adapter.AsChar<?> adapter) double
get
(int idx, Adapter.AsDouble<?> adapter) float
get
(int idx, Adapter.AsFloat<?> adapter) int
get
(int idx, Adapter.AsInt<?> adapter) long
get
(int idx, Adapter.AsLong<?> adapter) short
get
(int idx, Adapter.AsShort<?> adapter) <T> T
get
(Attribute att, Adapter.As<T, ?> adapter) boolean
get
(Attribute att, Adapter.AsBoolean<?> adapter) byte
get
(Attribute att, Adapter.AsByte<?> adapter) char
get
(Attribute att, Adapter.AsChar<?> adapter) double
get
(Attribute att, Adapter.AsDouble<?> adapter) float
get
(Attribute att, Adapter.AsFloat<?> adapter) int
get
(Attribute att, Adapter.AsInt<?> adapter) long
get
(Attribute att, Adapter.AsLong<?> adapter) short
get
(Attribute att, Adapter.AsShort<?> adapter) relation()
default <T> T
sqlGet
(int idx, Adapter.As<T, ?> adapter) default boolean
sqlGet
(int idx, Adapter.AsBoolean<?> adapter) default byte
sqlGet
(int idx, Adapter.AsByte<?> adapter) default char
sqlGet
(int idx, Adapter.AsChar<?> adapter) default double
sqlGet
(int idx, Adapter.AsDouble<?> adapter) default float
sqlGet
(int idx, Adapter.AsFloat<?> adapter) default int
sqlGet
(int idx, Adapter.AsInt<?> adapter) default long
sqlGet
(int idx, Adapter.AsLong<?> adapter) default short
sqlGet
(int idx, Adapter.AsShort<?> adapter)
-
Method Details
-
descriptor
TupleDescriptor descriptor() -
relation
RegClass relation() -
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
get
-
sqlGet
-
sqlGet
-
sqlGet
-
sqlGet
-
sqlGet
-
sqlGet
-
sqlGet
-
sqlGet
-
sqlGet
-