Class ResultInfo

java.lang.Object
org.apache.flink.table.gateway.rest.serde.ResultInfo

@Internal public class ResultInfo extends Object
A ResultInfo contains information of a ResultSet. It is designed for transferring the information of ResultSet via REST. For its serialization and deserialization, See:

ResultInfoSerializer and ResultInfoDeserializer

  • Method Details

    • createResultInfo

      public static ResultInfo createResultInfo(org.apache.flink.table.gateway.api.results.ResultSet resultSet, RowFormat rowFormat, @Nullable RowDataLocalTimeZoneConverter timeZoneConverter)
    • 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 the 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.

    • getResultSchema

      public org.apache.flink.table.catalog.ResolvedSchema getResultSchema()
      Get the schemas of the results.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object