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 voiddeallocate()UpdatableRowDataduplicateForUpdate()java.lang.ObjectgetField(int fieldIdx, ResultField field, Context context, java.lang.Class<?> targetClass, java.lang.Object targetContext)io.netty.buffer.ByteBuf[]getFieldBuffers()intgetFieldCount()FieldBuffersRowDatatouch(java.lang.Object hint)voidupdateField(int columnIndex, ResultField field, Context context, java.lang.Object source, java.lang.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:
getFieldCountin interfaceRowData
-
getField
public java.lang.Object getField(int fieldIdx, ResultField field, Context context, java.lang.Class<?> targetClass, java.lang.Object targetContext) throws java.io.IOException
-
updateField
public void updateField(int columnIndex, ResultField field, Context context, java.lang.Object source, java.lang.Object sourceContext) throws java.io.IOException- Specified by:
updateFieldin interfaceUpdatableRowData- Throws:
java.io.IOException
-
getFieldBuffers
public io.netty.buffer.ByteBuf[] getFieldBuffers()
- Specified by:
getFieldBuffersin interfaceUpdatableRowData
-
deallocate
protected void deallocate()
- Specified by:
deallocatein classio.netty.util.AbstractReferenceCounted
-
touch
public FieldBuffersRowData touch(java.lang.Object hint)
- Specified by:
touchin interfaceio.netty.util.ReferenceCounted
-
duplicateForUpdate
public UpdatableRowData duplicateForUpdate()
- Specified by:
duplicateForUpdatein interfaceRowData
-
-