@PublicEvolving public interface ResultSet
ResultSet
represents the collection of the results. This interface defines the methods
that can be used on the ResultSet.Modifier and Type | Interface and Description |
---|---|
static class |
ResultSet.ResultType
Describe the kind of the result.
|
Modifier and Type | Method and Description |
---|---|
List<RowData> |
getData()
All the data in the current results.
|
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.
|
ResultKind |
getResultKind()
Gets the result kind of the result.
|
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.
|
boolean |
isQueryResult()
Indicates that whether the result is for a query.
|
ResultSet.ResultType getResultType()
@Nullable Long getNextToken()
When the token is null, it means all the data has been fetched.
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 | | +- -----------+-------------+----------+
boolean isQueryResult()
@Nullable JobID getJobID()
ResultKind getResultKind()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.