Package com.impossibl.postgres.jdbc
Class PGBuffersArray
- java.lang.Object
-
- com.impossibl.postgres.jdbc.PGArray
-
- com.impossibl.postgres.jdbc.PGBuffersArray
-
-
Constructor Summary
Constructors Constructor Description PGBuffersArray(Context context, ArrayType type, FieldFormat elementFormat, io.netty.buffer.ByteBuf[] elementBuffers, int[] dimensions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PGBuffersArray
encode(Context context, ArrayType type, Object array)
static void
encode(Context context, Type componentType, FieldFormat format, Object value, List<io.netty.buffer.ByteBuf> elementBuffers)
void
free()
protected Object
getArray(Context context, Class<?> targetComponentType, long index, int count)
int
getLength()
protected ResultSet
getResultSet(Context context, long index, int count)
-
Methods inherited from class com.impossibl.postgres.jdbc.PGArray
checkFreed, getArray, getArray, getArray, getArray, getArray, getBaseType, getBaseTypeName, getResultSet, getResultSet, getResultSet, getResultSet, getType
-
-
-
-
Constructor Detail
-
PGBuffersArray
public PGBuffersArray(Context context, ArrayType type, FieldFormat elementFormat, io.netty.buffer.ByteBuf[] elementBuffers, int[] dimensions)
-
-
Method Detail
-
encode
public static PGBuffersArray encode(Context context, ArrayType type, Object array) throws IOException
- Throws:
IOException
-
encode
public static void encode(Context context, Type componentType, FieldFormat format, Object value, List<io.netty.buffer.ByteBuf> elementBuffers) throws IOException
- Throws:
IOException
-
getArray
protected Object getArray(Context context, Class<?> targetComponentType, long index, int count) throws SQLException
- Specified by:
getArray
in classPGArray
- Throws:
SQLException
-
getResultSet
protected ResultSet getResultSet(Context context, long index, int count) throws SQLException
- Specified by:
getResultSet
in classPGArray
- Throws:
SQLException
-
free
public void free()
-
-