public class StreamingSelectResult extends SelectQueryResult
| Modifier and Type | Field and Description |
|---|---|
ValueObject[] |
values |
isClosed, prepareResult| Constructor and Description |
|---|
StreamingSelectResult(ColumnInformation[] info,
AbstractConnectProtocol protocol,
ReadPacketFetcher fetcher,
boolean binaryProtocol)
Create Streaming resultset.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(AbstractQueryResult other) |
void |
close()
Close resultset.
|
static StreamingSelectResult |
createStreamingSelectResult(ResultSetPacket packet,
ReadPacketFetcher packetFetcher,
AbstractQueryProtocol protocol,
boolean binaryProtocol)
Create streaming resultset.
|
int |
getRows() |
ValueObject |
getValueObject(int index)
Gets the value at position i in the result set. i starts at zero.
|
boolean |
isAfterLast() |
boolean |
isBeforeFirst() |
boolean |
isBinaryProtocol() |
boolean |
next()
Move pointer forward.
|
getColumnInformation, getMessage, getResultSetType, getRowPointer, getWarnings, moveRowPointerTogetFailureObject, isClosed, setFailureObjectpublic ValueObject[] values
public StreamingSelectResult(ColumnInformation[] info, AbstractConnectProtocol protocol, ReadPacketFetcher fetcher, boolean binaryProtocol)
info - column informationprotocol - protocol informationfetcher - stream fetcherbinaryProtocol - is binary protocol ?public void addResult(AbstractQueryResult other)
addResult in class AbstractQueryResultpublic static StreamingSelectResult createStreamingSelectResult(ResultSetPacket packet, ReadPacketFetcher packetFetcher, AbstractQueryProtocol protocol, boolean binaryProtocol) throws IOException, QueryException
packet - the result set stream from the serverpacketFetcher - packetfetcherprotocol - the current connection protocol classbinaryProtocol - is the mysql protocol binaryIOException - when something goes wrong while reading/writing from the serverQueryException - if there is an actual active result on the current connectionpublic boolean next()
throws IOException,
QueryException
SelectQueryResultnext in class SelectQueryResultIOException - ioExceptionQueryException - queryExceptionpublic void close()
close in class AbstractQueryResultpublic ValueObject getValueObject(int index) throws NoSuchColumnException
getValueObject in class SelectQueryResultindex - index, starts at 0NoSuchColumnException - if the column does not existpublic int getRows()
getRows in class AbstractQueryResultpublic boolean isBeforeFirst()
isBeforeFirst in class SelectQueryResultpublic boolean isAfterLast()
isAfterLast in class SelectQueryResultpublic boolean isBinaryProtocol()
Copyright © 2016. All rights reserved.