next() call. Consumed rows are not cached thus result
sets are streamed only when they are forward-only, read-only, and the fetch size has been set to Integer.MIN_VALUE (rows are read one by one).
| Modifier and Type | Field and Description |
|---|---|
| private NativeMessageBuilder | |
| private ExceptionInterceptor | |
| private boolean | |
| private boolean | |
| private final Lock | |
| private Row | |
| private boolean | |
| private NativeProtocol | |
| private ProtocolEntityFactory | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | ResultsetRowsStreaming(NativeProtocol
the connection to MySQL that this data is coming from protocol, ColumnDefinition the metadata that describe this data columnDefinition, boolean is this data in native format? isBinaryEncoded, ProtocolEntityFactory<T, NativePacketPayload> resultSetFactory)Creates a new ResultsetRowsStreaming object. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | beforeFirst()
Overrides default com. Moves to before first. |
| public void | |
| public void | |
| public int | getPosition()
Overrides default com. Returns the current position. |
| public boolean | |
| public boolean | isAfterLast()
Implements com. Returns true if we got the last element. |
| public boolean | isBeforeFirst()
Implements com. Returns if iteration has not occured yet. |
| public boolean | |
| public boolean | isFirst()
Overrides default com. Are we on the first row of the result set? |
| public boolean | isLast()
Overrides default com. Are we on the last row of the result set? |
| public void | moveRowRelative(int
the relative number of rows to move rows)Overrides default com. Moves the current position relative 'rows' from the current position. |
| public Row | |
| public void | setCurrentRow(int
row to move to rowNumber)Overrides default com. Moves the current position in the result set to the given row number. |
| commandBuilder | back to summary |
|---|---|
| private NativeMessageBuilder commandBuilder | |
| exceptionInterceptor | back to summary |
|---|---|
| private ExceptionInterceptor exceptionInterceptor | |
| isAfterEnd | back to summary |
|---|---|
| private boolean isAfterEnd | |
| isBinaryEncoded | back to summary |
|---|---|
| private boolean isBinaryEncoded | |
| lock | back to summary |
|---|---|
| private final Lock lock | |
| nextRow | back to summary |
|---|---|
| private Row nextRow | |
| noMoreRows | back to summary |
|---|---|
| private boolean noMoreRows | |
| protocol | back to summary |
|---|---|
| private NativeProtocol protocol | |
| resultSetFactory | back to summary |
|---|---|
| private ProtocolEntityFactory<T, NativePacketPayload> resultSetFactory | |
| streamerClosed | back to summary |
|---|---|
| private boolean streamerClosed | |
| ResultsetRowsStreaming | back to summary |
|---|---|
| public ResultsetRowsStreaming(NativeProtocol protocol, ColumnDefinition columnDefinition, boolean isBinaryEncoded, ProtocolEntityFactory<T, NativePacketPayload> resultSetFactory) Creates a new ResultsetRowsStreaming object.
| |
| afterLast | back to summary |
|---|---|
| public void afterLast() Overrides default com. Doc from com. Moves to after last.
| |
| beforeFirst | back to summary |
|---|---|
| public void beforeFirst() Overrides default com. Doc from com. Moves to before first.
| |
| beforeLast | back to summary |
|---|---|
| public void beforeLast() Overrides default com. Doc from com. Moves to before last.
| |
| close | back to summary |
|---|---|
| public void close() Overrides default com. Doc from com. We're done.
| |
| getPosition | back to summary |
|---|---|
| public int getPosition() Overrides default com. Doc from com. Returns the current position.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| isAfterLast | back to summary |
|---|---|
| public boolean isAfterLast() Implements com. Doc from com. Returns true if we got the last element.
| |
| isBeforeFirst | back to summary |
|---|---|
| public boolean isBeforeFirst() Implements com. Doc from com. Returns if iteration has not occured yet.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides default com. Doc from com. Has no records.
| |
| isFirst | back to summary |
|---|---|
| public boolean isFirst() Overrides default com. Doc from com. Are we on the first row of the result set?
| |
| isLast | back to summary |
|---|---|
| public boolean isLast() Overrides default com. Doc from com. Are we on the last row of the result set?
| |
| moveRowRelative | back to summary |
|---|---|
| public void moveRowRelative(int rows) Overrides default com. Doc from com. Moves the current position relative 'rows' from the current position.
| |
| next | back to summary |
|---|---|
| public Row next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| setCurrentRow | back to summary |
|---|---|
| public void setCurrentRow(int rowNumber) Overrides default com. Doc from com. Moves the current position in the result set to the given row number.
| |