public class CompleteResult extends Result
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BEFORE_FIRST_POS |
closed, context, data, dataSize, exceptionFactory, loaded, maxRows, metadataList, outputParameter, reader, resultSetType, row, rowPointer, statementCLOSE_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| Constructor and Description |
|---|
CompleteResult(ColumnDefinitionPacket[] metadataList,
byte[][] data,
Context context) |
CompleteResult(Statement stmt,
boolean binaryProtocol,
long maxRows,
ColumnDefinitionPacket[] metadataList,
PacketReader reader,
Context context,
int resultSetType,
boolean closeOnCompletion,
boolean traceEnable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int idx) |
void |
afterLast() |
void |
beforeFirst() |
void |
closeFromStmtClose(ReentrantLock lock) |
static ResultSet |
createResultSet(String[] columnNames,
com.singlestore.jdbc.codec.DataType[] columnTypes,
String[][] data,
Context context)
Create a result set from given data.
|
static ResultSet |
createResultSet(String columnName,
com.singlestore.jdbc.codec.DataType columnType,
String[][] data,
Context context) |
void |
fetchRemaining() |
boolean |
first() |
int |
getFetchSize() |
int |
getRow() |
boolean |
isAfterLast() |
boolean |
isFirst() |
boolean |
isLast() |
boolean |
last() |
boolean |
next() |
boolean |
previous() |
boolean |
relative(int rows) |
void |
setFetchSize(int rows) |
boolean |
streaming() |
abort, addRowData, cancelRowUpdates, checkClose, checkNotForwardOnly, clearWarnings, close, deleteRow, findColumn, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCurrentRowData, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isBeforeFirst, isClosed, isOutputParameter, isWrapperFor, loaded, moveToCurrentRow, moveToInsertRow, readNext, refreshRow, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setStatement, skipRemaining, 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, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowData, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp, useAliasAsName, wasNullprotected static final int BEFORE_FIRST_POS
public CompleteResult(Statement stmt, boolean binaryProtocol, long maxRows, ColumnDefinitionPacket[] metadataList, PacketReader reader, Context context, int resultSetType, boolean closeOnCompletion, boolean traceEnable) throws IOException, SQLException
IOExceptionSQLExceptionpublic CompleteResult(ColumnDefinitionPacket[] metadataList, byte[][] data, Context context)
public static ResultSet createResultSet(String columnName, com.singlestore.jdbc.codec.DataType columnType, String[][] data, Context context)
public static ResultSet createResultSet(String[] columnNames, com.singlestore.jdbc.codec.DataType[] columnTypes, String[][] data, Context context)
columnNames - - string array of column namescolumnTypes - - column typesdata - - each element of this array represents a complete row in the ResultSet. Each value
is given in its string representation, as in SingleStore text protocol, except boolean
(BIT(1)) values that are represented as "1" or "0" stringscontext - connection contextpublic boolean next()
throws SQLException
next in interface ResultSetnext in class ResultSQLExceptionpublic void fetchRemaining()
fetchRemaining in class Resultpublic void closeFromStmtClose(ReentrantLock lock)
closeFromStmtClose in class Resultpublic boolean isAfterLast()
throws SQLException
isAfterLast in interface ResultSetisAfterLast in class ResultSQLExceptionpublic boolean isFirst()
throws SQLException
isFirst in interface ResultSetisFirst in class ResultSQLExceptionpublic boolean isLast()
throws SQLException
isLast in interface ResultSetisLast in class ResultSQLExceptionpublic void beforeFirst()
throws SQLException
beforeFirst in interface ResultSetbeforeFirst in class ResultSQLExceptionpublic void afterLast()
throws SQLException
afterLast in interface ResultSetafterLast in class ResultSQLExceptionpublic boolean first()
throws SQLException
first in interface ResultSetfirst in class ResultSQLExceptionpublic boolean last()
throws SQLException
last in interface ResultSetlast in class ResultSQLExceptionpublic int getRow()
throws SQLException
getRow in interface ResultSetgetRow in class ResultSQLExceptionpublic boolean absolute(int idx)
throws SQLException
absolute in interface ResultSetabsolute in class ResultSQLExceptionpublic boolean relative(int rows)
throws SQLException
relative in interface ResultSetrelative in class ResultSQLExceptionpublic boolean previous()
throws SQLException
previous in interface ResultSetprevious in class ResultSQLExceptionpublic int getFetchSize()
throws SQLException
SQLExceptionpublic void setFetchSize(int rows)
throws SQLException
SQLExceptionCopyright © 2023 SingleStore. All rights reserved.