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 java.io.IOException
sf
- ProtocolEntityFactory
instanceProtocolEntity
instancejava.io.IOException
- if an error occursdefault T read(int maxRows, boolean streamResults, M resultPacket, ColumnDefinition metadata, ProtocolEntityFactory<T,M> protocolEntityFactory) throws java.io.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
instancejava.io.IOException
- if an error occurs while reading the rows