类 BinaryResultsetReader
- java.lang.Object
-
- com.mysql.cj.protocol.a.BinaryResultsetReader
-
- 所有已实现的接口:
ProtocolEntityReader<Resultset,NativePacketPayload>
public class BinaryResultsetReader extends Object implements ProtocolEntityReader<Resultset,NativePacketPayload>
-
-
字段概要
字段 修饰符和类型 字段 说明 protected NativeProtocolprotocol
-
构造器概要
构造器 构造器 说明 BinaryResultsetReader(NativeProtocol prot)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.mysql.cj.protocol.ProtocolEntityReader
read
-
-
-
-
字段详细资料
-
protocol
protected NativeProtocol protocol
-
-
构造器详细资料
-
BinaryResultsetReader
public BinaryResultsetReader(NativeProtocol prot)
-
-
方法详细资料
-
read
public Resultset read(int maxRows, boolean streamResults, NativePacketPayload resultPacket, ColumnDefinition metadata, ProtocolEntityFactory<Resultset,NativePacketPayload> resultSetFactory) throws IOException
从接口复制的说明:ProtocolEntityReaderReads one result set off of the wire, if the result is actually an update count, creates an update-count only result set.- 指定者:
read在接口中ProtocolEntityReader<Resultset,NativePacketPayload>- 参数:
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- 返回:
- a result set that either represents the rows, or an update count
- 抛出:
IOException- if an error occurs while reading the rows
-
-