public class TextResultsetReader extends java.lang.Object implements ProtocolEntityReader<Resultset,NativePacketPayload>
Modifier and Type | Field and Description |
---|---|
protected NativeProtocol |
protocol |
Constructor and Description |
---|
TextResultsetReader(NativeProtocol prot) |
Modifier and Type | Method and Description |
---|---|
Resultset |
read(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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read
protected NativeProtocol protocol
public TextResultsetReader(NativeProtocol prot)
public Resultset read(int maxRows, boolean streamResults, NativePacketPayload resultPacket, ColumnDefinition metadata, ProtocolEntityFactory<Resultset,NativePacketPayload> resultSetFactory) throws java.io.IOException
ProtocolEntityReader
read
in interface 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
- ProtocolEntityFactory
instancejava.io.IOException
- if an error occurs while reading the rows