java.lang.Object
org.apache.shardingsphere.infra.executor.sql.execute.result.query.type.stream.AbstractStreamQueryResult
org.apache.shardingsphere.infra.executor.sql.execute.result.query.impl.driver.jdbc.type.stream.JDBCStreamQueryResult
All Implemented Interfaces:
ExecuteResult, QueryResult

public final class JDBCStreamQueryResult extends AbstractStreamQueryResult
JDBC query result for stream loading.
  • Constructor Details

  • Method Details

    • next

      public boolean next() throws SQLException
      Description copied from interface: QueryResult
      Iterate next data.
      Returns:
      has next data
      Throws:
      SQLException - SQL exception
    • getValue

      public Object getValue(int columnIndex, Class<?> type) throws SQLException
      Description copied from interface: QueryResult
      Get data value.
      Parameters:
      columnIndex - column index
      type - class type of data value
      Returns:
      data value
      Throws:
      SQLException - SQL exception
    • getCalendarValue

      public Object getCalendarValue(int columnIndex, Class<?> type, Calendar calendar) throws SQLException
      Description copied from interface: QueryResult
      Get calendar value.
      Parameters:
      columnIndex - column index
      type - class type of data value
      calendar - calendar
      Returns:
      calendar value
      Throws:
      SQLException - SQL exception
    • getInputStream

      public InputStream getInputStream(int columnIndex, String type) throws SQLException
      Description copied from interface: QueryResult
      Get input stream.
      Parameters:
      columnIndex - column index
      type - class type of data value
      Returns:
      input stream
      Throws:
      SQLException - SQL exception
    • wasNull

      public boolean wasNull() throws SQLException
      Description copied from interface: QueryResult
      Judge result set is null or not.
      Returns:
      result set is null or not
      Throws:
      SQLException - SQL exception
    • close

      public void close() throws SQLException
      Description copied from interface: QueryResult
      Close.
      Throws:
      SQLException - SQL exception