类 ResultsetRowsStreaming<T extends ProtocolEntity>
- java.lang.Object
-
- com.mysql.cj.protocol.a.result.AbstractResultsetRows
-
- com.mysql.cj.protocol.a.result.ResultsetRowsStreaming<T>
-
- 类型参数:
T- ProtocolEntity type
- 所有已实现的接口:
ProtocolEntity,ResultsetRows,RowList,Iterator<Row>
public class ResultsetRowsStreaming<T extends ProtocolEntity> extends AbstractResultsetRows implements ResultsetRows
Provides streaming of Resultset rows. Each next row is consumed from the input stream only onnext()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).
-
-
字段概要
-
从类继承的字段 com.mysql.cj.protocol.a.result.AbstractResultsetRows
BEFORE_START_OF_ROWS, currentPositionInFetchedRows, metadata, owner, rowFactory, wasEmpty
-
从接口继承的字段 com.mysql.cj.result.RowList
RESULT_SET_SIZE_UNKNOWN
-
-
构造器概要
构造器 构造器 说明 ResultsetRowsStreaming(NativeProtocol io, ColumnDefinition columnDefinition, boolean isBinaryEncoded, ProtocolEntityFactory<T,NativePacketPayload> resultSetFactory)Creates a new RowDataDynamic object.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidafterLast()Moves to after last.voidbeforeFirst()Moves to before first.voidbeforeLast()Moves to before last.voidclose()We're done.intgetPosition()Returns the current position.booleanhasNext()booleanisAfterLast()Returns true if we got the last element.booleanisBeforeFirst()Returns if iteration has not occured yet.booleanisEmpty()Has no records.booleanisFirst()Are we on the first row of the result set?booleanisLast()Are we on the last row of the result set?voidmoveRowRelative(int rows)Moves the current position relative 'rows' from the current position.Rownext()voidsetCurrentRow(int rowNumber)Moves the current position in the result set to the given row number.-
从类继承的方法 com.mysql.cj.protocol.a.result.AbstractResultsetRows
getMetadata, getOwner, setMetadata, setOwner, wasEmpty
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.util.Iterator
forEachRemaining, remove
-
从接口继承的方法 com.mysql.cj.protocol.ResultsetRows
addRow, getMetadata, getOwner, isDynamic, setMetadata, setOwner, wasEmpty
-
-
-
-
构造器详细资料
-
ResultsetRowsStreaming
public ResultsetRowsStreaming(NativeProtocol io, ColumnDefinition columnDefinition, boolean isBinaryEncoded, ProtocolEntityFactory<T,NativePacketPayload> resultSetFactory)
Creates a new RowDataDynamic object.- 参数:
io- the connection to MySQL that this data is coming fromcolumnDefinition- the metadata that describe this dataisBinaryEncoded- is this data in native format?resultSetFactory-ProtocolEntityFactory
-
-
方法详细资料
-
close
public void close()
从接口复制的说明:ResultsetRowsWe're done.- 指定者:
close在接口中ResultsetRows
-
hasNext
public boolean hasNext()
- 指定者:
hasNext在接口中Iterator<T extends ProtocolEntity>
-
isAfterLast
public boolean isAfterLast()
从接口复制的说明:ResultsetRowsReturns true if we got the last element.- 指定者:
isAfterLast在接口中ResultsetRows- 返回:
- true if after last row
-
isBeforeFirst
public boolean isBeforeFirst()
从接口复制的说明:ResultsetRowsReturns if iteration has not occured yet.- 指定者:
isBeforeFirst在接口中ResultsetRows- 返回:
- true if before first row
-
isEmpty
public boolean isEmpty()
从接口复制的说明:ResultsetRowsHas no records.- 指定者:
isEmpty在接口中ResultsetRows- 返回:
- true if no records
-
isFirst
public boolean isFirst()
从接口复制的说明:ResultsetRowsAre we on the first row of the result set?- 指定者:
isFirst在接口中ResultsetRows- 返回:
- true if on first row
-
isLast
public boolean isLast()
从接口复制的说明:ResultsetRowsAre we on the last row of the result set?- 指定者:
isLast在接口中ResultsetRows- 返回:
- true if on last row
-
next
public Row next()
- 指定者:
next在接口中Iterator<T extends ProtocolEntity>
-
getPosition
public int getPosition()
从接口复制的说明:RowListReturns the current position.- 指定者:
getPosition在接口中RowList- 返回:
- the current row number
-
afterLast
public void afterLast()
从接口复制的说明:ResultsetRowsMoves to after last.- 指定者:
afterLast在接口中ResultsetRows
-
beforeFirst
public void beforeFirst()
从接口复制的说明:ResultsetRowsMoves to before first.- 指定者:
beforeFirst在接口中ResultsetRows
-
beforeLast
public void beforeLast()
从接口复制的说明:ResultsetRowsMoves to before last.- 指定者:
beforeLast在接口中ResultsetRows
-
moveRowRelative
public void moveRowRelative(int rows)
从接口复制的说明:ResultsetRowsMoves the current position relative 'rows' from the current position.- 指定者:
moveRowRelative在接口中ResultsetRows- 参数:
rows- the relative number of rows to move
-
setCurrentRow
public void setCurrentRow(int rowNumber)
从接口复制的说明:ResultsetRowsMoves the current position in the result set to the given row number.- 指定者:
setCurrentRow在接口中ResultsetRows- 参数:
rowNumber- row to move to
-
-