Class ResultInfo
- java.lang.Object
-
- org.apache.flink.table.gateway.rest.serde.ResultInfo
-
@Internal public class ResultInfo extends Object
AResultInfocontains information of aResultSet. It is designed for transferring the information of ResultSet via REST. For its serialization and deserialization, See:
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResultInfocreateResultInfo(org.apache.flink.table.gateway.api.results.ResultSet resultSet, RowFormat rowFormat)booleanequals(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 theRowData.FieldGetterto get column value in the results.org.apache.flink.table.catalog.ResolvedSchemagetResultSchema()Get the schemas of the results.RowFormatgetRowFormat()Get the row format about the data.inthashCode()StringtoString()
-
-
-
Method Detail
-
createResultInfo
public static ResultInfo createResultInfo(org.apache.flink.table.gateway.api.results.ResultSet resultSet, RowFormat rowFormat)
-
getColumnInfos
public List<ColumnInfo> getColumnInfos()
Get the column info of the data.
-
getData
public List<org.apache.flink.table.data.RowData> getData()
Get the data.
-
getRowFormat
public RowFormat getRowFormat()
Get the row format about the data.
-
getFieldGetters
public List<org.apache.flink.table.data.RowData.FieldGetter> getFieldGetters()
Create theRowData.FieldGetterto get column value in the results.With
JSONformat, it uses theResolvedSchemato build the getters. However, it usesStringData'sRowData.FieldGetterto get the column values.
-
getResultSchema
public org.apache.flink.table.catalog.ResolvedSchema getResultSchema()
Get the schemas of the results.
-
-