Package org.postgresql.fastpath
Class FastpathArg
java.lang.Object
org.postgresql.fastpath.FastpathArg
- Direct Known Subclasses:
FastpathArg.ByteStreamWriterFastpathArg
Each fastpath call requires an array of arguments, the number and type dependent on the function
being called.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
Encoded byte value of argument.private final int
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionFastpathArg
(byte[] bytes) Constructs an argument that consists of an array of bytes.FastpathArg
(byte[] buf, int off, int len) Constructs an argument that consists of part of a byte array.FastpathArg
(int value) Constructs an argument that consists of an integer value.FastpathArg
(long value) Constructs an argument that consists of an integer value.Constructs an argument that consists of a String. -
Method Summary
Modifier and TypeMethodDescriptionstatic FastpathArg
of
(ByteStreamWriter writer) (package private) void
populateParameter
(ParameterList params, int index)
-
Field Details
-
bytes
private final byte[] bytesEncoded byte value of argument. -
bytesStart
private final int bytesStart -
bytesLength
private final int bytesLength
-
-
Constructor Details
-
FastpathArg
public FastpathArg(int value) Constructs an argument that consists of an integer value.- Parameters:
value
- int value to set
-
FastpathArg
public FastpathArg(long value) Constructs an argument that consists of an integer value.- Parameters:
value
- int value to set
-
FastpathArg
public FastpathArg(byte[] bytes) Constructs an argument that consists of an array of bytes.- Parameters:
bytes
- array to store
-
FastpathArg
public FastpathArg(byte[] buf, int off, int len) Constructs an argument that consists of part of a byte array.- Parameters:
buf
- source arrayoff
- offset within arraylen
- length of data to include
-
FastpathArg
Constructs an argument that consists of a String.- Parameters:
s
- String to store
-
-
Method Details
-
of
-
populateParameter
- Throws:
SQLException
-