Class 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 Detail

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object