public class ResultSet extends Object
Constructor and Description |
---|
ResultSet(SQLJob sqlJob) |
ResultSet(SQLJob sqlJob,
List<Row> rows) |
Modifier and Type | Method and Description |
---|---|
Row |
getRow()
Get the current row form ResultSet
|
int |
getRowCount()
Get row count of the ResultSet
|
TableSchema |
getSchema()
Get the Schema of the ResultSet
|
boolean |
next()
Moves the cursor forward one row from its current position.
|
public ResultSet(SQLJob sqlJob)
public boolean next() throws DLIException
ResultSet
cursor is initially positioned
before the first row; the first call to the method
next
makes the first row the current row; the
second call makes the second row the current row, and so on.
When a call to the next
method returns false
,
the cursor is positioned after the last row.
DLIException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic Row getRow()
public int getRowCount() throws DLIException
DLIException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic TableSchema getSchema() throws DLIException
DLIException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyCopyright © 2023. All rights reserved.