T - ProtocolEntity typepublic class ResultsetRowsStreaming<T extends ProtocolEntity> extends AbstractResultsetRows implements ResultsetRows
next() call. Consumed rows are not cached thus
we only stream result sets when they are forward-only, read-only, and the
fetch size has been set to Integer.MIN_VALUE (rows are read one by one).BEFORE_START_OF_ROWS, currentPositionInFetchedRows, metadata, owner, rowFactory, wasEmptyRESULT_SET_SIZE_UNKNOWN| Constructor and Description |
|---|
ResultsetRowsStreaming(NativeProtocol io,
ColumnDefinition columnDefinition,
boolean isBinaryEncoded,
ProtocolEntityFactory<T,NativePacketPayload> resultSetFactory)
Creates a new RowDataDynamic object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterLast()
Moves to after last.
|
void |
beforeFirst()
Moves to before first.
|
void |
beforeLast()
Moves to before last.
|
void |
close()
We're done.
|
int |
getPosition()
Returns the current position.
|
boolean |
hasNext() |
boolean |
isAfterLast()
Returns true if we got the last element.
|
boolean |
isBeforeFirst()
Returns if iteration has not occured yet.
|
boolean |
isEmpty()
Has no records.
|
boolean |
isFirst()
Are we on the first row of the result set?
|
boolean |
isLast()
Are we on the last row of the result set?
|
void |
moveRowRelative(int rows)
Moves the current position relative 'rows' from the current position.
|
Row |
next() |
void |
setCurrentRow(int rowNumber)
Moves the current position in the result set to the given row number.
|
getMetadata, getOwner, setMetadata, setOwner, wasEmptyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRow, getMetadata, getOwner, isDynamic, setMetadata, setOwner, wasEmptypublic ResultsetRowsStreaming(NativeProtocol io, ColumnDefinition columnDefinition, boolean isBinaryEncoded, ProtocolEntityFactory<T,NativePacketPayload> resultSetFactory)
io - the connection to MySQL that this data is coming fromcolumnDefinition - the metadata that describe this dataisBinaryEncoded - is this data in native format?resultSetFactory - ProtocolEntityFactorypublic void close()
ResultsetRowsclose in interface ResultsetRowspublic boolean hasNext()
hasNext in interface java.util.Iterator<Row>public boolean isAfterLast()
ResultsetRowsisAfterLast in interface ResultsetRowspublic boolean isBeforeFirst()
ResultsetRowsisBeforeFirst in interface ResultsetRowspublic boolean isEmpty()
ResultsetRowsisEmpty in interface ResultsetRowspublic boolean isFirst()
ResultsetRowsisFirst in interface ResultsetRowspublic boolean isLast()
ResultsetRowsisLast in interface ResultsetRowspublic int getPosition()
RowListgetPosition in interface RowListpublic void afterLast()
ResultsetRowsafterLast in interface ResultsetRowspublic void beforeFirst()
ResultsetRowsbeforeFirst in interface ResultsetRowspublic void beforeLast()
ResultsetRowsbeforeLast in interface ResultsetRowspublic void moveRowRelative(int rows)
ResultsetRowsmoveRowRelative in interface ResultsetRowsrows - the relative number of rows to movepublic void setCurrentRow(int rowNumber)
ResultsetRowssetCurrentRow in interface ResultsetRowsrowNumber - row to move to