public class HiveQueryResultSet extends HiveBaseResultSet
Modifier and Type | Class and Description |
---|---|
static class |
HiveQueryResultSet.Builder |
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
columnAttributes, columnNames, columnTypes, normalizedColumnNames, row, statement, warningChain, wasNull
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
Modifier | Constructor and Description |
---|---|
protected |
HiveQueryResultSet(HiveQueryResultSet.Builder builder) |
Modifier and Type | Method and Description |
---|---|
void |
beforeFirst()
Moves the cursor before the first row of the resultset.
|
void |
close() |
int |
getFetchSize() |
ResultSetMetaData |
getMetaData() |
<T> T |
getObject(int columnIndex,
Class<T> type) |
<T> T |
getObject(String columnLabel,
Class<T> type) |
int |
getRow() |
int |
getType() |
boolean |
isBeforeFirst() |
boolean |
next()
Moves the cursor down one row from its current position.
|
void |
setFetchSize(int rows) |
absolute, afterLast, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getRef, getRef, getRowId, getRowId, getSchema, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isClosed, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setSchema, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, wasNull
protected HiveQueryResultSet(HiveQueryResultSet.Builder builder) throws SQLException
SQLException
public void close() throws SQLException
close
in interface AutoCloseable
close
in interface ResultSet
close
in class HiveBaseResultSet
SQLException
public boolean next() throws SQLException
SQLException
- if a database access error occurs.ResultSet.next()
public ResultSetMetaData getMetaData() throws SQLException
getMetaData
in interface ResultSet
getMetaData
in class HiveBaseResultSet
SQLException
public void setFetchSize(int rows) throws SQLException
setFetchSize
in interface ResultSet
setFetchSize
in class HiveBaseResultSet
SQLException
public int getType() throws SQLException
getType
in interface ResultSet
getType
in class HiveBaseResultSet
SQLException
public int getFetchSize() throws SQLException
getFetchSize
in interface ResultSet
getFetchSize
in class HiveBaseResultSet
SQLException
public <T> T getObject(String columnLabel, Class<T> type) throws SQLException
SQLException
public <T> T getObject(int columnIndex, Class<T> type) throws SQLException
SQLException
public void beforeFirst() throws SQLException
beforeFirst
in interface ResultSet
beforeFirst
in class HiveBaseResultSet
SQLException
- if a database access error occurs.ResultSet.next()
public boolean isBeforeFirst() throws SQLException
isBeforeFirst
in interface ResultSet
isBeforeFirst
in class HiveBaseResultSet
SQLException
public int getRow() throws SQLException
getRow
in interface ResultSet
getRow
in class HiveBaseResultSet
SQLException
Copyright © 2017 The Apache Software Foundation. All rights reserved.