Package com.mysql.cj.result
Interface RowList
- All Superinterfaces:
java.util.Iterator<Row>
- All Known Subinterfaces:
ResultsetRows
- All Known Implementing Classes:
AbstractResultsetRows,BufferedRowList,ResultsetRowsCursor,ResultsetRowsStatic,ResultsetRowsStreaming,XProtocolRowInputStream
public interface RowList extends java.util.Iterator<Row>
A list of
Rows.-
Field Summary
Fields Modifier and Type Field Description static intRESULT_SET_SIZE_UNKNOWNWhat's returned for the size of a row list when its size can not be determined. -
Method Summary
-
Field Details
-
RESULT_SET_SIZE_UNKNOWN
static final int RESULT_SET_SIZE_UNKNOWNWhat's returned for the size of a row list when its size can not be determined.- See Also:
- Constant Field Values
-
-
Method Details
-
previous
Optionally iterate backwards on the list.- Returns:
Row
-
get
Optionally retrieve Row at index n. Only works on non dynamic row lists.- Parameters:
n- row number- Returns:
Row
-
getPosition
default int getPosition()Returns the current position.- Returns:
- the current row number
-
size
default int size()Only works on non dynamic row lists.- Returns:
- the size of this row list
-