Package com.impossibl.postgres.protocol
Class FieldBuffersRowData
- java.lang.Object
-
- io.netty.util.AbstractReferenceCounted
-
- com.impossibl.postgres.protocol.FieldBuffersRowData
-
- All Implemented Interfaces:
RowData
,UpdatableRowData
,io.netty.util.ReferenceCounted
public class FieldBuffersRowData extends io.netty.util.AbstractReferenceCounted implements UpdatableRowData, io.netty.util.ReferenceCounted
-
-
Constructor Summary
Constructors Constructor Description FieldBuffersRowData(ResultField[] fields, io.netty.buffer.ByteBufAllocator alloc)
FieldBuffersRowData(io.netty.buffer.ByteBuf[] fieldBuffers, io.netty.buffer.ByteBufAllocator alloc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deallocate()
UpdatableRowData
duplicateForUpdate()
Object
getField(int fieldIdx, ResultField field, Context context, Class<?> targetClass, Object targetContext)
io.netty.buffer.ByteBuf[]
getFieldBuffers()
int
getFieldCount()
FieldBuffersRowData
touch(Object hint)
void
updateField(int columnIndex, ResultField field, Context context, Object source, Object sourceContext)
-
Methods inherited from class io.netty.util.AbstractReferenceCounted
refCnt, release, release, retain, retain, setRefCnt, touch
-
-
-
-
Constructor Detail
-
FieldBuffersRowData
public FieldBuffersRowData(ResultField[] fields, io.netty.buffer.ByteBufAllocator alloc)
-
FieldBuffersRowData
public FieldBuffersRowData(io.netty.buffer.ByteBuf[] fieldBuffers, io.netty.buffer.ByteBufAllocator alloc)
-
-
Method Detail
-
getFieldCount
public int getFieldCount()
- Specified by:
getFieldCount
in interfaceRowData
-
getField
public Object getField(int fieldIdx, ResultField field, Context context, Class<?> targetClass, Object targetContext) throws IOException
- Specified by:
getField
in interfaceRowData
- Throws:
IOException
-
updateField
public void updateField(int columnIndex, ResultField field, Context context, Object source, Object sourceContext) throws IOException
- Specified by:
updateField
in interfaceUpdatableRowData
- Throws:
IOException
-
getFieldBuffers
public io.netty.buffer.ByteBuf[] getFieldBuffers()
- Specified by:
getFieldBuffers
in interfaceUpdatableRowData
-
deallocate
protected void deallocate()
- Specified by:
deallocate
in classio.netty.util.AbstractReferenceCounted
-
touch
public FieldBuffersRowData touch(Object hint)
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
-
duplicateForUpdate
public UpdatableRowData duplicateForUpdate()
- Specified by:
duplicateForUpdate
in interfaceRowData
-
-