read
default T read(int maxRows,
boolean streamResults,
M resultPacket,
ColumnDefinition metadata,
ProtocolEntityFactory<T,M> protocolEntityFactory)
throws IOException
Reads one result set off of the wire, if the result is actually an
update count, creates an update-count only result set.
- 参数:
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 set
metadata - use this metadata instead of the one provided on wire
protocolEntityFactory - ProtocolEntityFactory instance
- 返回:
- a result set that either represents the rows, or an update count
- 抛出:
IOException - if an error occurs while reading the rows