Top Description Inners Fields Constructors Methods
org.postgresql.fastpath

public Class FastpathArg

extends Object
Class Inheritance
Known Direct Subclasses
org.postgresql.fastpath.FastpathArg.ByteStreamWriterFastpathArg
Annotations
@Deprecated
Imports
org.postgresql.core.ParameterList, org.postgresql.util.ByteStreamWriter, org.checkerframework.checker.nullness.qual.Nullable, java.sql.SQLException

Deprecated

This API is somewhat obsolete, as one may achieve similar performance and greater functionality by setting up a prepared statement to define the function call. Then, executing the statement with binary transmission of parameters and results substitutes for a fast-path function call.

Each fastpath call requires an array of arguments, the number and type dependent on the function being called.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
FastpathArg.ByteStreamWriterFastpathArg

References Deprecated FastpathArg is deprecated or references (maybe indirectly) at least one deprecated element.

Field Summary

Modifier and TypeField and Description
private final @Nullable byte[]
bytes

Encoded byte value of argument.

private final int
private final int

Constructor Summary

AccessConstructor and Description
public
FastpathArg(int
int value to set
value
)

Constructs an argument that consists of an integer value.

public
FastpathArg(long
int value to set
value
)

Constructs an argument that consists of an integer value.

public
FastpathArg(byte[]
array to store
bytes
)

Constructs an argument that consists of an array of bytes.

public
FastpathArg(@Nullable byte[]
source array
buf
,
int
offset within array
off
,
int
length of data to include
len
)

Constructs an argument that consists of part of a byte array.

public
FastpathArg(String
String to store
s
)

Constructs an argument that consists of a String.

Method Summary

Modifier and TypeMethod and Description
public static FastpathArg
of(ByteStreamWriter writer)
References Deprecated FastpathArg is deprecated or references (maybe indirectly) at least one deprecated element.

pack-priv void
populateParameter(ParameterList params, int index)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bytesback to summary
private final @Nullable byte[] bytes

Encoded byte value of argument.

bytesLengthback to summary
private final int bytesLength
bytesStartback to summary
private final int bytesStart

Constructor Detail

FastpathArgback to summary
public FastpathArg(int value)

Constructs an argument that consists of an integer value.

Parameters
value:int

int value to set

FastpathArgback to summary
public FastpathArg(long value)

Constructs an argument that consists of an integer value.

Parameters
value:long

int value to set

FastpathArgback to summary
public FastpathArg(byte[] bytes)

Constructs an argument that consists of an array of bytes.

Parameters
bytes:byte[]

array to store

FastpathArgback to summary
public FastpathArg(@Nullable byte[] buf, int off, int len)

Constructs an argument that consists of part of a byte array.

Parameters
buf:@Nullable byte[]

source array

off:int

offset within array

len:int

length of data to include

FastpathArgback to summary
public FastpathArg(String s)

Constructs an argument that consists of a String.

Parameters
s:String

String to store

Method Detail

ofback to summary
public static FastpathArg of(ByteStreamWriter writer)

References Deprecated

FastpathArg is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

populateParameterback to summary
pack-priv void populateParameter(ParameterList params, int index) throws SQLException
org.postgresql.fastpath back to summary

pack-priv Class FastpathArg.ByteStreamWriterFastpathArg

extends FastpathArg
Class Inheritance

References Deprecated

FastpathArg is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Field Summary

Modifier and TypeField and Description
private final ByteStreamWriter

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
Inherited from org.postgresql.fastpath.FastpathArg:
of

Field Detail

writerback to summary
private final ByteStreamWriter writer

Constructor Detail

ByteStreamWriterFastpathArgback to summary
pack-priv ByteStreamWriterFastpathArg(ByteStreamWriter writer)

Method Detail

populateParameterback to summary
pack-priv void populateParameter(ParameterList params, int index) throws SQLException

Overrides org.postgresql.fastpath.FastpathArg.populateParameter.

Annotations
@Override