ResultSet.ResultType
Modifier and Type | Field and Description |
---|---|
static NotReadyResult |
INSTANCE |
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.
|
public static final NotReadyResult INSTANCE
public ResultSet.ResultType getResultType()
ResultSet
getResultType
in interface ResultSet
public Long getNextToken()
ResultSet
When the token is null, it means all the data has been fetched.
getNextToken
in interface ResultSet
public ResolvedSchema getResultSchema()
ResultSet
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 | | +- -----------+-------------+----------+
getResultSchema
in interface ResultSet
public List<RowData> getData()
ResultSet
public boolean isQueryResult()
ResultSet
isQueryResult
in interface ResultSet
public JobID getJobID()
ResultSet
public ResultKind getResultKind()
ResultSet
getResultKind
in interface ResultSet
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.