Package com.mysql.cj.protocol.a.result
Class AbstractBufferRow
java.lang.Object
com.mysql.cj.protocol.result.AbstractResultsetRow
com.mysql.cj.protocol.a.result.AbstractBufferRow
- All Implemented Interfaces:
ProtocolEntity
,ResultsetRow
,Row
- Direct Known Subclasses:
BinaryBufferRow
,TextBufferRow
public abstract class AbstractBufferRow extends 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
Fields Modifier and Type Field Description protected int
homePosition
The beginning of the row packetprotected 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
rowFromServer
Fields inherited from class com.mysql.cj.protocol.result.AbstractResultsetRow
exceptionInterceptor, metadata, valueDecoder, wasNull
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBufferRow(ExceptionInterceptor exceptionInterceptor)
-
Method Summary
Methods inherited from class com.mysql.cj.protocol.result.AbstractResultsetRow
getValueFromBytes, setMetadata, wasNull
-
Field Details
-
rowFromServer
-
homePosition
protected int homePositionThe beginning of the row packet -
lastRequestedIndex
protected int lastRequestedIndexThe 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. -
lastRequestedPos
protected int lastRequestedPosThe position of the last-requested index, optimization in concert with lastRequestedIndex.
-
-
Constructor Details