Package com.mysql.cj.result
Class BufferedRowList
java.lang.Object
com.mysql.cj.result.BufferedRowList
public class BufferedRowList extends java.lang.Object implements RowList
-
Field Summary
-
Constructor Summary
Constructors Constructor Description BufferedRowList(java.util.Iterator<Row> ris)Create a new instance by filling the internal buffer by draining the row stream.BufferedRowList(java.util.List<Row> rowList) -
Method Summary
-
Constructor Details
-
BufferedRowList
-
BufferedRowList
Create a new instance by filling the internal buffer by draining the row stream.- Parameters:
ris-Rows iterator
-
-
Method Details
-
next
- Specified by:
nextin interfacejava.util.Iterator<Row>
-
previous
Description copied from interface:RowListOptionally iterate backwards on the list. -
get
Description copied from interface:RowListOptionally retrieve Row at index n. Only works on non dynamic row lists. -
getPosition
public int getPosition()Description copied from interface:RowListReturns the current position.- Specified by:
getPositionin interfaceRowList- Returns:
- the current row number
-
size
public int size()Description copied from interface:RowListOnly works on non dynamic row lists. -
hasNext
public boolean hasNext()- Specified by:
hasNextin interfacejava.util.Iterator<Row>
-