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

public Class TextResultsetReader

extends Object
implements ProtocolEntityReader<Resultset, NativePacketPayload>
Class Inheritance
All Implemented Interfaces
com.mysql.cj.protocol.ProtocolEntityReader
Imports
java.io.IOException, java.util.ArrayList, com.mysql.cj.conf.PropertyKey, com.mysql.cj.protocol.ColumnDefinition, .ProtocolEntityFactory, .ProtocolEntityReader, .Resultset, .ResultsetRow, .ResultsetRows, com.mysql.cj.protocol.a.NativeConstants.IntegerDataType, .NativeConstants.StringSelfDataType, com.mysql.cj.protocol.a.result.OkPacket, .ResultsetRowsStatic, .ResultsetRowsStreaming

Field Summary

Modifier and TypeField and Description
protected NativeProtocol

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Resultset
read(int
the maximum number of rows to read (-1 means all rows)
maxRows
,
boolean
should the driver leave the results on the wire, and read them only when needed?
streamResults
,
NativePacketPayload
the first packet of information in the result set
resultPacket
,
ColumnDefinition
use this metadata instead of the one provided on wire
metadata
,
ProtocolEntityFactory<Resultset, NativePacketPayload> resultSetFactory)

Overrides default com.mysql.cj.protocol.ProtocolEntityReader.read.

Reads one result set off of the wire, if the result is actually an update count, creates an update-count only result set.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

protocolback to summary
protected NativeProtocol protocol

Constructor Detail

TextResultsetReaderback to summary
public TextResultsetReader(NativeProtocol prot)

Method Detail

readback to summary
public Resultset read(int maxRows, boolean streamResults, NativePacketPayload resultPacket, ColumnDefinition metadata, ProtocolEntityFactory<Resultset, NativePacketPayload> resultSetFactory) throws IOException

Overrides default com.mysql.cj.protocol.ProtocolEntityReader.read.

Doc from com.mysql.cj.protocol.ProtocolEntityReader.read.

Reads one result set off of the wire, if the result is actually an update count, creates an update-count only result set.

Parameters
maxRows:int

the maximum number of rows to read (-1 means all rows)

streamResults:boolean

should the driver leave the results on the wire, and read them only when needed?

resultPacket:NativePacketPayload

the first packet of information in the result set

metadata:ColumnDefinition

use this metadata instead of the one provided on wire

resultSetFactory:ProtocolEntityFactory<Resultset, NativePacketPayload>

ProtocolEntityFactory instance

Returns:Resultset

a result set that either represents the rows, or an update count

Annotations
@Override
Exceptions
IOException:
if an error occurs while reading the rows