ResultSet.ResultType
Constructor and Description |
---|
ResultSetImpl(ResultSet.ResultType resultType,
Long nextToken,
ResolvedSchema resultSchema,
List<RowData> data,
RowDataToStringConverter converter,
boolean isQueryResult,
JobID jobID,
ResultKind resultKind) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
RowDataToStringConverter |
getConverter() |
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.
|
int |
hashCode() |
boolean |
isQueryResult()
Indicates that whether the result is for a query.
|
String |
toString() |
public ResultSetImpl(ResultSet.ResultType resultType, @Nullable Long nextToken, ResolvedSchema resultSchema, List<RowData> data, RowDataToStringConverter converter, boolean isQueryResult, @Nullable JobID jobID, ResultKind resultKind)
public ResultSet.ResultType getResultType()
ResultSet
getResultType
in interface ResultSet
@Nullable 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 RowDataToStringConverter getConverter()
public boolean isQueryResult()
ResultSet
isQueryResult
in interface ResultSet
public JobID getJobID()
ResultSet
public ResultKind getResultKind()
ResultSet
getResultKind
in interface ResultSet
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.