public interface ProtocolEntityReader<T extends ProtocolEntity,M extends Message>
| Modifier and Type | Method and Description |
|---|---|
default T |
read(int maxRows,
boolean streamResults,
M resultPacket,
ColumnDefinition metadata,
ProtocolEntityFactory<T,M> protocolEntityFactory)
Reads one result set off of the wire, if the result is actually an
update count, creates an update-count only result set.
|
default T |
read(ProtocolEntityFactory<T,M> sf) |
default T read(ProtocolEntityFactory<T,M> sf) throws IOException
sf - ProtocolEntityFactory instanceProtocolEntity instanceIOException - if an error occursdefault T read(int maxRows, boolean streamResults, M resultPacket, ColumnDefinition metadata, ProtocolEntityFactory<T,M> protocolEntityFactory) throws IOException
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 wireprotocolEntityFactory - ProtocolEntityFactory instanceIOException - if an error occurs while reading the rows