Package org.postgresql.pljava.internal
package org.postgresql.pljava.internal
Java classes implementing core PL/Java behavior. Many of these are the
concrete implementations of classes in the
pljava-api module,
and many have corresponding native code in
pljava-so.
- Author:
- Thomas Hallgren
-
ClassDescriptionAn
AbstractList
whoseparallelStream
method returns a sequential stream (a behavior the spec does allow), and whosespliterator
method returns aSpliterator
that never splits.TheAclId
correspons to the internal PostgreSQLAclId
.Provides access to some useful routines in the PostgreSQL server.Wrap a readableByteBuffer
as anInputStream
.Wrap a readableByteBuffer
as aSyntheticXMLReader
.CacheMap<T>Functional interfaces handling checked exceptions.Checked.AutoCloseable<E extends Exception>Version ofAutoCloseable
with an exception-type parameter.Checked.BiConsumer<T,U, E extends Throwable> LikeBiConsumer
but with a body that can throw checked exceptions.Checked.BooleanConsumer<E extends Throwable>Represents an operation that accepts a single boolean-valued argument and can throw checked exceptions.Checked.BooleanSupplier<E extends Throwable>LikeBooleanSupplier
but with a body that can throw checked exceptions.Checked.ByteConsumer<E extends Throwable>Represents an operation that accepts a single byte-valued argument and can throw checked exceptions.Checked.ByteSupplier<E extends Throwable>A supplier of byte-valued results, with a body that can throw checked exceptions.Checked.CharConsumer<E extends Throwable>Represents an operation that accepts a single char-valued argument and can throw checked exceptions.Checked.CharSupplier<E extends Throwable>A supplier of char-valued results, with a body that can throw checked exceptions.Checked.Closing<T,E extends Exception> A class that can supply aT
while also implementingAutoCloseable<E>
; suitable for use in atry
-with-resources to wrap some value that does not itself implementAutoCloseable
.Checked.Consumer<T,E extends Throwable> LikeConsumer
but with a body that can throw checked exceptions.Checked.DoubleConsumer<E extends Throwable>LikeDoubleConsumer
but with a body that can throw checked exceptions.Checked.DoubleSupplier<E extends Throwable>LikeDoubleSupplier
but with a body that can throw checked exceptions.Checked.FloatConsumer<E extends Throwable>Represents an operation that accepts a single float-valued argument and can throw checked exceptions.Checked.FloatSupplier<E extends Throwable>A supplier of float-valued results, with a body that can throw checked exceptions.Checked.Function<T,R, E extends Throwable> LikeFunction
but with a body that can throw checked exceptions.Checked.IntConsumer<E extends Throwable>LikeIntConsumer
but with a body that can throw checked exceptions.Checked.IntSupplier<E extends Throwable>LikeIntSupplier
but with a body that can throw checked exceptions.Checked.LongConsumer<E extends Throwable>LikeLongConsumer
but with a body that can throw checked exceptions.Checked.LongSupplier<E extends Throwable>LikeLongSupplier
but with a body that can throw checked exceptions.Head of a family ofOptional
-like types covering the Java primitives that thejava.util.Optional...
classes do not cover, and whose methods that expect functional interfaces will accept the checked-exception versions declared here.A container object which may or may not contain aboolean
value.A container object which may or may not contain abyte
value.A container object which may or may not contain achar
value.A container object which may or may not contain afloat
value.A container object which may or may not contain ashort
value.Checked.Predicate<T,E extends Throwable> LikePredicate
but with a body that can throw checked exceptions.Checked.Runnable<E extends Throwable>LikeRunnable
but with a body that can throw checked exceptions.Checked.ShortConsumer<E extends Throwable>Represents an operation that accepts a single short-valued argument and can throw checked exceptions.Checked.ShortSupplier<E extends Throwable>A supplier of short-valued results, with a body that can throw checked exceptions.Checked.Supplier<T,E extends Throwable> LikeSupplier
but with a body that can throw checked exceptions.Checked.ToByteFunction<T,E extends Throwable> Represents a function that produces a byte-valued result and can throw checked exceptions.Checked.ToCharFunction<T,E extends Throwable> Represents a function that produces a char-valued result and can throw checked exceptions.Checked.ToDoubleFunction<T,E extends Throwable> LikeToDoubleFunction
but with a body that can throw checked exceptions.Checked.ToFloatFunction<T,E extends Throwable> Represents a function that produces a float-valued result and can throw checked exceptions.Checked.ToIntFunction<T,E extends Throwable> LikeToIntFunction
but with a body that can throw checked exceptions.Checked.ToLongFunction<T,E extends Throwable> LikeToLongFunction
but with a body that can throw checked exceptions.Checked.ToShortFunction<T,E extends Throwable> Represents a function that produces a short-valued result and can throw checked exceptions.DualState<T>Base class for object state with corresponding Java and native components.ADualState
subclass whose only native resource releasing action needed isheap_freetuple
of the address of a direct byte buffer.An otherwise nonfunctional DualState subclass whose instances only serve as list headers in per-lifespan lists of instances.A subinterface ofAutoCloseable
whoseclose
method throws no checked exceptions.ADualState
subclass whose only native resource releasing action needed is a JNIDeleteGlobalRef
of a single pointer.ADualState
subclass whose only native resource releasing action needed isFreeErrorData
of a single pointer.ADualState
subclass whose only native resource releasing action needed isFreeTupleDesc
of a single pointer.ADualState
subclass serving only to guard access to a single nonnullByteBuffer
value.ADualState
subclass serving only to guard access to a single nonzerolong
value (typically a native pointer).ADualState
subclass whose only native resource releasing action needed isheap_freetuple
of a single pointer.ADualState
subclass whose only native resource releasing action needed isMemoryContextDelete
of a single context.ADualState
subclass whose only native resource releasing action needed ispfree
of a single pointer.ADualState
subclass whose only native resource releasing action needed isSPI_cursor_close
of a single pointer.ADualState
subclass whose only native resource releasing action needed isSPI_freeplan
of a single pointer.ADualState
subclass whose only native resource releasing action needed isSPI_freetuptable
of a single pointer.TheErrorData
correspons to the ErrorData obtained using an internal PostgreSQLCopyErrorData
call.TheExecutionPlan
corresponds to the execution plan obtained using an internal PostgreSQLSPI_prepare
call.Methods to look up a PL/Java function and prepare it for invocation.Group of methods intended to streamline the PL/Java installation/startup experience.One invocation, from PostgreSQL, of functionality implemented using PL/Java.Implements PL/Java's generalized notion of lifespans.Version ofSequenceInputStream
that supportsmark
andreset
, to the extent its constituent input streams do.AListIterator
that will fetch an element from aBlockingQueue
wheneverhasNext
would (otherwise) returnfalse
, adding it to the end of the list where the nextnext()
will retrieve it.Like aMarkableSequenceInputStream
but for characters.TheOid
correspons to the internal PostgreSQLOid
.Implementation ofSavepoint
for the SPI connection.ThePortal
correspons to the internal PostgreSQLPortal
type.Clean interface to thedoPrivileged...
methods onAccessController
.TheRelation
correspons to the internal PostgreSQLRelation
.An adapter class used internally when a set-returning user function returns aResultSetHandle
, presenting it as aResultSetProvider
instead.A Java exception constructed over a PostgreSQL error report.An instance of this interface reflects the current session.TheSPI
class provides access to some global variables used by SPI.A Java exception constructed from a PostgreSQL SPI result code.Tool for implementing objects or families of objects with methods that lazily compute various values and then return the same values until invalidated, after which new values will be lazily computed when next requested.Builder for use during the static initialization of a class that usesSwitchPointCache
.Base class implementing the tedious parts of a SAXXMLReader
whose XML content is synthesized on the fly.An immutable and empty collection of attributes.Subclass ofAttributes2Impl
that also provides chainable methods so attribute information can be supplied in a fluent style.Deprecated, for removal: This API element is subject to removal in a future version.TheTriggerData
correspons to the internal PostgreSQLTriggerData
.TheTuple
correspons to the internal PostgreSQLHeapTuple
.TheTupleDesc
correspons to the internal PostgreSQLTupleDesc
.TheSPITupleTable
correspons to the internal PostgreSQLSPITupleTable
type.An unchecked exception to efficiently wrap checked Throwables.Interface that wraps a PostgreSQL native variable-length ("varlena") datum; implementing classes present an existing one to Java as a readableInputStream
, or allow a new one to be constructed by presenting a writableOutputStream
.A class by which Java reads the content of a varlena.A class by which Java writes the content of a varlena as an OutputStream.AVerifier
verifies the proper form of content written to aVarlenaWrapper.Output
.Verifier to be extended to verify byte streams for specific types.A Verifier that accepts any content, cheaply.Class adapting aByteBufferXMLReader
to aDatum.Input
.
pljava-api
, (b) is only used to implement the once-transactional attribute map inSession
, and (c) hasn't had transactional behavior even there, since 3ab90e5 (November 2005).