@PublicEvolving public class ResultSet extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ResultSet.ResultType
Describe the kind of the result.
|
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_NAME_COLUMN_INFOS |
static String |
FIELD_NAME_DATA |
static ResultSet |
NOT_READY_RESULTS |
Constructor and Description |
---|
ResultSet(ResultSet.ResultType resultType,
Long nextToken,
ResolvedSchema resultSchema,
List<RowData> data) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<RowData> |
getData()
All the data in the current results.
|
Long |
getNextToken()
The token indicates the next batch of the data.
|
ResolvedSchema |
getResultSchema()
The schema of the data.
|
ResultSet.ResultType |
getResultType()
Get the type of the results, which may indicate the result is EOS or has data.
|
int |
hashCode() |
String |
toString() |
public static final String FIELD_NAME_COLUMN_INFOS
public static final String FIELD_NAME_DATA
public static final ResultSet NOT_READY_RESULTS
public ResultSet(ResultSet.ResultType resultType, @Nullable Long nextToken, ResolvedSchema resultSchema, List<RowData> data)
public ResultSet.ResultType getResultType()
@Nullable public Long getNextToken()
When the token is null, it means all the data has been fetched.
public ResolvedSchema getResultSchema()
The schema of the DDL, USE, EXPLAIN, SHOW and DESCRIBE align with the schema of the TableResult.getResolvedSchema()
. The only differences is the schema of the `INSERT`
statement.
The schema of INSERT:
+-------------+-------------+----------+ | column name | column type | comments | +-------------+-------------+----------+ | job id | string | | +- -----------+-------------+----------+
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.