Package com.mysql.cj.protocol.a
Class TextResultsetReader
java.lang.Object
com.mysql.cj.protocol.a.TextResultsetReader
- All Implemented Interfaces:
ProtocolEntityReader<Resultset,NativePacketPayload>
public class TextResultsetReader extends java.lang.Object implements ProtocolEntityReader<Resultset,NativePacketPayload>
-
Field Summary
Fields Modifier and Type Field Description protected NativeProtocolprotocol -
Constructor Summary
Constructors Constructor Description TextResultsetReader(NativeProtocol prot) -
Method Summary
Modifier and Type Method Description Resultsetread(int maxRows, boolean streamResults, NativePacketPayload resultPacket, ColumnDefinition metadata, ProtocolEntityFactory<Resultset,NativePacketPayload> resultSetFactory)Reads one result set off of the wire, if the result is actually an update count, creates an update-count only result set.
-
Field Details
-
Constructor Details
-
Method Details
-
read
public Resultset read(int maxRows, boolean streamResults, NativePacketPayload resultPacket, ColumnDefinition metadata, ProtocolEntityFactory<Resultset,NativePacketPayload> resultSetFactory) throws java.io.IOExceptionDescription copied from interface:ProtocolEntityReaderReads one result set off of the wire, if the result is actually an update count, creates an update-count only result set.- Specified by:
readin interfaceProtocolEntityReader<Resultset,NativePacketPayload>- Parameters:
maxRows- the maximum number of rows to read (-1 means all rows)streamResults- should the driver leave the results on the wire, and read them only when needed?resultPacket- the first packet of information in the result setmetadata- use this metadata instead of the one provided on wireresultSetFactory-ProtocolEntityFactoryinstance- Returns:
- a result set that either represents the rows, or an update count
- Throws:
java.io.IOException- if an error occurs while reading the rows
-