ResultSet.ResultType| Constructor and Description |
|---|
ResultSetImpl(ResultSet.ResultType resultType,
Long nextToken,
org.apache.flink.table.catalog.ResolvedSchema resultSchema,
List<org.apache.flink.table.data.RowData> data,
org.apache.flink.table.utils.print.RowDataToStringConverter converter,
boolean isQueryResult,
org.apache.flink.api.common.JobID jobID,
org.apache.flink.table.api.ResultKind resultKind) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
org.apache.flink.table.utils.print.RowDataToStringConverter |
getConverter() |
List<org.apache.flink.table.data.RowData> |
getData()
All the data in the current results.
|
org.apache.flink.api.common.JobID |
getJobID()
If the statement was submitted to a client, returns the JobID which uniquely identifies the
job.
|
Long |
getNextToken()
The token indicates the next batch of the data.
|
org.apache.flink.table.api.ResultKind |
getResultKind()
Gets the result kind of the result.
|
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() |
boolean |
isQueryResult()
Indicates that whether the result is for a query.
|
String |
toString() |
public ResultSetImpl(ResultSet.ResultType resultType, @Nullable Long nextToken, org.apache.flink.table.catalog.ResolvedSchema resultSchema, List<org.apache.flink.table.data.RowData> data, org.apache.flink.table.utils.print.RowDataToStringConverter converter, boolean isQueryResult, @Nullable org.apache.flink.api.common.JobID jobID, org.apache.flink.table.api.ResultKind resultKind)
public ResultSet.ResultType getResultType()
ResultSetgetResultType in interface ResultSet@Nullable public Long getNextToken()
ResultSetWhen the token is null, it means all the data has been fetched.
getNextToken in interface ResultSetpublic org.apache.flink.table.catalog.ResolvedSchema getResultSchema()
ResultSetThe 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 | | +- -----------+-------------+----------+
getResultSchema in interface ResultSetpublic List<org.apache.flink.table.data.RowData> getData()
ResultSetpublic org.apache.flink.table.utils.print.RowDataToStringConverter getConverter()
public boolean isQueryResult()
ResultSetisQueryResult in interface ResultSetpublic org.apache.flink.api.common.JobID getJobID()
ResultSetpublic org.apache.flink.table.api.ResultKind getResultKind()
ResultSetgetResultKind in interface ResultSetCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.