Top Description Fields Constructors Methods
com.mysql.cj.protocol.a.result

public abstract Class AbstractBufferRow

extends AbstractResultsetRow
Class Inheritance
Known Direct Subclasses
com.mysql.cj.protocol.a.result.BinaryBufferRow, com.mysql.cj.protocol.a.result.TextBufferRow
Imports
com.mysql.cj.exceptions.ExceptionInterceptor, com.mysql.cj.protocol.a.NativePacketPayload, com.mysql.cj.protocol.result.AbstractResultsetRow

A ResultSetRow implementation that holds one row packet (which is re-used by the driver, and thus saves memory allocations), and tries when possible to avoid allocations to break out the results as individual byte[]s. (this isn't possible when doing things like reading floating point values).

Field Summary

Modifier and TypeField and Description
protected int
homePosition

The beginning of the row packet

protected int
lastRequestedIndex

The last-requested index, used as an optimization, if you ask for the same index, we won't seek to find it.

protected int
lastRequestedPos

The position of the last-requested index, optimization in concert with lastRequestedIndex.

protected NativePacketPayload
Inherited from com.mysql.cj.protocol.result.AbstractResultsetRow:
exceptionInterceptormetadatavalueDecoderwasNull

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract int
Inherited from com.mysql.cj.protocol.result.AbstractResultsetRow:
getValueFromBytessetMetadatawasNull

Field Detail

homePositionback to summary
protected int homePosition

The beginning of the row packet

lastRequestedIndexback to summary
protected int lastRequestedIndex

The last-requested index, used as an optimization, if you ask for the same index, we won't seek to find it. If you ask for an index that is greater than the last one requested, we start seeking from the last requested index.

lastRequestedPosback to summary
protected int lastRequestedPos

The position of the last-requested index, optimization in concert with lastRequestedIndex.

rowFromServerback to summary
protected NativePacketPayload rowFromServer

Constructor Detail

AbstractBufferRowback to summary
protected AbstractBufferRow(ExceptionInterceptor exceptionInterceptor)

Method Detail

findAndSeekToOffsetback to summary
pack-priv abstract int findAndSeekToOffset(int index)