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 Details

    • rowFromServer

      protected NativePacketPayload rowFromServer
    • homePosition

      protected int homePosition
      The beginning of the row packet
    • lastRequestedIndex

      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.
    • lastRequestedPos

      protected int lastRequestedPos
      The position of the last-requested index, optimization in concert with lastRequestedIndex.
  • Constructor Details