public class ResultSet extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResultSet.Record |
| Constructor and Description |
|---|
ResultSet(ExecutionResponse resp,
int timezoneOffset) |
| Modifier and Type | Method and Description |
|---|---|
List<ValueWrapper> |
colValues(String columnName)
get col values on the column key
|
List<String> |
getColumnNames()
get column names of the dataset
|
String |
getComment()
get the comment from the server
|
int |
getErrorCode()
get errorCode of execute result
|
String |
getErrorMessage()
get the error message of the execute result
|
long |
getLatency()
get latency of the query execute time
|
PlanDescription |
getPlanDesc()
get the PalnDesc
|
List<Row> |
getRows()
get all rows, the value is the origin value, the string is binary
|
String |
getSpaceName()
get the space name of current session
|
boolean |
isEmpty()
the result data is empty
|
boolean |
isSucceeded()
the execute result is succeeded
|
List<String> |
keys()
get keys of the dataset
|
int |
rowsSize()
get the size of rows
|
ResultSet.Record |
rowValues(int index)
get row values with the row index
|
String |
toString() |
public ResultSet(ExecutionResponse resp, int timezoneOffset)
public boolean isSucceeded()
public boolean isEmpty()
public int getErrorCode()
public String getSpaceName()
public String getErrorMessage()
public String getComment()
public long getLatency()
public PlanDescription getPlanDesc()
public int rowsSize()
public ResultSet.Record rowValues(int index)
index - the index of the rowspublic List<ValueWrapper> colValues(String columnName)
columnName - the column namepublic List<Row> getRows()
Copyright © 2022. All rights reserved.