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, moveRowPointerTo
getFailureObject, isClosed, setFailureObject
public 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 AbstractQueryResult
public 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
SelectQueryResult
next
in class SelectQueryResult
IOException
- ioExceptionQueryException
- queryExceptionpublic void close()
close
in class AbstractQueryResult
public ValueObject getValueObject(int index) throws NoSuchColumnException
getValueObject
in class SelectQueryResult
index
- index, starts at 0NoSuchColumnException
- if the column does not existpublic int getRows()
getRows
in class AbstractQueryResult
public boolean isBeforeFirst()
isBeforeFirst
in class SelectQueryResult
public boolean isAfterLast()
isAfterLast
in class SelectQueryResult
public boolean isBinaryProtocol()
Copyright © 2016. All rights reserved.