@Internal public class ResultInfo extends Object
ResultInfo contains information of a ResultSet. It is designed for transferring
the information of ResultSet via REST. For its serialization and deserialization, See:
| Modifier and Type | Method and Description |
|---|---|
static ResultInfo |
createResultInfo(org.apache.flink.table.gateway.api.results.ResultSet resultSet,
RowFormat rowFormat) |
boolean |
equals(Object o) |
List<ColumnInfo> |
getColumnInfos()
Get the column info of the data.
|
List<org.apache.flink.table.data.RowData> |
getData()
Get the data.
|
List<org.apache.flink.table.data.RowData.FieldGetter> |
getFieldGetters()
Create the
RowData.FieldGetter to get column value in the results. |
org.apache.flink.table.catalog.ResolvedSchema |
getResultSchema()
Get the schemas of the results.
|
RowFormat |
getRowFormat()
Get the row format about the data.
|
int |
hashCode() |
String |
toString() |
public static ResultInfo createResultInfo(org.apache.flink.table.gateway.api.results.ResultSet resultSet, RowFormat rowFormat)
public List<ColumnInfo> getColumnInfos()
public List<org.apache.flink.table.data.RowData> getData()
public RowFormat getRowFormat()
public List<org.apache.flink.table.data.RowData.FieldGetter> getFieldGetters()
RowData.FieldGetter to get column value in the results.
With JSON format, it uses the ResolvedSchema to build the getters.
However, it uses StringData's RowData.FieldGetter to get the column values.
public org.apache.flink.table.catalog.ResolvedSchema getResultSchema()
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.