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 PGBuffersArrayencode(Context context, ArrayType type, Object array)static voidencode(Context context, Type componentType, FieldFormat format, Object value, List<io.netty.buffer.ByteBuf> elementBuffers)voidfree()protected ObjectgetArray(Context context, Class<?> targetComponentType, long index, int count)intgetLength()protected ResultSetgetResultSet(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:
getArrayin classPGArray- Throws:
SQLException
-
getResultSet
protected ResultSet getResultSet(Context context, long index, int count) throws SQLException
- Specified by:
getResultSetin classPGArray- Throws:
SQLException
-
free
public void free()
-
-