@PublicEvolving public class ResultSet extends Object implements Serializable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ResultSet.ResultType
Describe the kind of the result.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
FIELD_NAME_COLUMN_INFOS |
static String |
FIELD_NAME_DATA |
static ResultSet |
NOT_READY_RESULTS |
| 构造器和说明 |
|---|
ResultSet(ResultSet.ResultType resultType,
Long nextToken,
org.apache.flink.table.catalog.ResolvedSchema resultSchema,
List<org.apache.flink.table.data.RowData> data) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
List<org.apache.flink.table.data.RowData> |
getData()
All the data in the current results.
|
Long |
getNextToken()
The token indicates the next batch of the data.
|
org.apache.flink.table.catalog.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 ResultSet NOT_READY_RESULTS
public ResultSet(ResultSet.ResultType resultType, @Nullable Long nextToken, org.apache.flink.table.catalog.ResolvedSchema resultSchema, List<org.apache.flink.table.data.RowData> data)
public ResultSet.ResultType getResultType()
@Nullable public Long getNextToken()
When the token is null, it means all the data has been fetched.
public org.apache.flink.table.catalog.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 | | +- -----------+-------------+----------+
public List<org.apache.flink.table.data.RowData> getData()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.