Class ResultSetImpl

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

        public int hashCode()
        Overrides:
        hashCode in class Object