All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.jdbc.core.IExecutionResult Maven / Gradle / Ivy

There is a newer version: 2.6.40-patch-1
Show newest version
package com.databricks.jdbc.core;

import java.sql.SQLException;

/** Interface to provide methods over an underlying statement result */
interface IExecutionResult {

  /**
   * Get the object for given column index. Here index starts with 0.
   *
   * @param columnIndex index of column starting with 0
   * @return object at given index
   * @throws SQLException
   */
  Object getObject(int columnIndex) throws DatabricksSQLException;

  /**
   * Gets the current row position, starting with 0.
   *
   * @return the current row position
   */
  long getCurrentRow();

  /**
   * Moves the cursor to next row and returns true if this can be done
   *
   * @return true if cursor is moved at next row
   */
  boolean next() throws DatabricksSQLException;

  /** Returns if there is next row in the result set */
  boolean hasNext();

  /** Closes the result set and releases any in-memory chunks or data */
  void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy