Class ResultSetImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      ResultSetImpl​(ResultSet.ResultType resultType, Long nextToken, org.apache.flink.table.catalog.ResolvedSchema resultSchema, List<org.apache.flink.table.data.RowData> data, org.apache.flink.table.utils.print.RowDataToStringConverter converter, boolean isQueryResult, org.apache.flink.api.common.JobID jobID, org.apache.flink.table.api.ResultKind resultKind)  
    • Constructor Detail

      • ResultSetImpl

        public ResultSetImpl​(ResultSet.ResultType resultType,
                             @Nullable
                             Long nextToken,
                             org.apache.flink.table.catalog.ResolvedSchema resultSchema,
                             List<org.apache.flink.table.data.RowData> data,
                             org.apache.flink.table.utils.print.RowDataToStringConverter converter,
                             boolean isQueryResult,
                             @Nullable
                             org.apache.flink.api.common.JobID jobID,
                             org.apache.flink.table.api.ResultKind resultKind)
    • Method Detail

      • getNextToken

        @Nullable
        public Long getNextToken()
        Description copied from interface: ResultSet
        The token indicates the next batch of the data.

        When the token is null, it means all the data has been fetched.

        Specified by:
        getNextToken in interface ResultSet
      • getResultSchema

        public org.apache.flink.table.catalog.ResolvedSchema getResultSchema()
        Description copied from interface: ResultSet
        The schema of the data.

        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   |          |
         +- -----------+-------------+----------+
         
        Specified by:
        getResultSchema in interface ResultSet
      • getData

        public List<org.apache.flink.table.data.RowData> getData()
        Description copied from interface: ResultSet
        All the data in the current results.
        Specified by:
        getData in interface ResultSet
      • getConverter

        public org.apache.flink.table.utils.print.RowDataToStringConverter getConverter()
      • isQueryResult

        public boolean isQueryResult()
        Description copied from interface: ResultSet
        Indicates that whether the result is for a query.
        Specified by:
        isQueryResult in interface ResultSet
      • getJobID

        public org.apache.flink.api.common.JobID getJobID()
        Description copied from interface: ResultSet
        If the statement was submitted to a client, returns the JobID which uniquely identifies the job. Otherwise, returns null.
        Specified by:
        getJobID in interface ResultSet
      • getResultKind

        public org.apache.flink.table.api.ResultKind getResultKind()
        Description copied from interface: ResultSet
        Gets the result kind of the result.
        Specified by:
        getResultKind in interface ResultSet
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object