public class CompleteResult extends Result
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BEFORE_FIRST_POS
before first row position = initial position
|
closed, context, data, dataSize, exceptionFactory, fieldIndex, loaded, maxRows, metadataList, NULL_LENGTH, reader, resultSetType, rowBuf, rowDecoder, rowPointer, statement, traceEnableCLOSE_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(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
byte[][] data,
com.singlestore.jdbc.client.Context context,
int resultSetType)
Specific constructor for internal build result-set, empty resultset, or generated key
result-set.
|
CompleteResult(Statement stmt,
boolean binaryProtocol,
long maxRows,
com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
Reader reader,
com.singlestore.jdbc.client.Context context,
int resultSetType,
boolean closeOnCompletion,
boolean traceEnable)
Constructor from exchanges
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int idx) |
void |
afterLast() |
void |
beforeFirst() |
void |
closeFromStmtClose(ClosableLock lock)
Closing result-set due to closing statement that issue command.
|
static ResultSet |
createResultSet(String[] columnNames,
com.singlestore.jdbc.client.DataType[] columnTypes,
String[][] data,
com.singlestore.jdbc.client.Context context,
int flags,
int resultSetType)
Create a result set from given data.
|
static ResultSet |
createResultSet(String columnName,
com.singlestore.jdbc.client.DataType columnType,
String[][] data,
com.singlestore.jdbc.client.Context context,
int flags,
int resultSetType)
Specific constructor for generating generated key result-set.
|
void |
fetchRemaining()
Fetch remaining results.
|
boolean |
first() |
int |
getFetchSize() |
int |
getRow() |
boolean |
isAfterLast() |
boolean |
isFirst() |
boolean |
isLast() |
boolean |
last() |
boolean |
next()
Position resultset to next row
|
boolean |
previous() |
boolean |
relative(int rows) |
void |
setFetchSize(int rows) |
boolean |
streaming()
Indicate of current result-set is a streaming result-set
|
CompleteResult |
useAliasAsName() |
abort, addRowData, cancelRowUpdates, checkClose, checkNotForwardOnly, clearWarnings, close, closeOnCompletion, 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, isWrapperFor, loaded, moveToCurrentRow, moveToInsertRow, readNext, refreshRow, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setNullRowBuf, setRow, 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, wasNullprotected static final int BEFORE_FIRST_POS
public CompleteResult(Statement stmt, boolean binaryProtocol, long maxRows, com.singlestore.jdbc.client.ColumnDecoder[] metadataList, Reader reader, com.singlestore.jdbc.client.Context context, int resultSetType, boolean closeOnCompletion, boolean traceEnable) throws IOException, SQLException
stmt - current statementbinaryProtocol - does exchanges uses binary protocolmaxRows - maximum number of rowsmetadataList - metadatareader - packet readercontext - connection contextresultSetType - result set typecloseOnCompletion - close statement on completiontraceEnable - network trace exchange possibleIOException - if Socket error occursSQLException - for all other kind of errorspublic CompleteResult(com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
byte[][] data,
com.singlestore.jdbc.client.Context context,
int resultSetType)
metadataList - metadatadata - result-set datacontext - connection contextresultSetType - result set typepublic static ResultSet createResultSet(String columnName, com.singlestore.jdbc.client.DataType columnType, String[][] data, com.singlestore.jdbc.client.Context context, int flags, int resultSetType)
columnName - column keycolumnType - column key typedata - valuescontext - connection contextflags - column flagsresultSetType - result set typepublic static ResultSet createResultSet(String[] columnNames, com.singlestore.jdbc.client.DataType[] columnTypes, String[][] data, com.singlestore.jdbc.client.Context context, int flags, int resultSetType)
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 contextflags - column flagsresultSetType - result set typepublic CompleteResult useAliasAsName()
public boolean next()
throws SQLException
Resultnext in interface ResultSetnext in class ResultSQLException - if any error occurspublic boolean streaming()
Resultpublic void fetchRemaining()
ResultfetchRemaining in class Resultpublic void closeFromStmtClose(ClosableLock lock)
ResultcloseFromStmtClose in class Resultlock - thread locker objectpublic 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
getFetchSize in interface ResultSetgetFetchSize in class ResultSQLExceptionpublic void setFetchSize(int rows)
throws SQLException
setFetchSize in interface ResultSetsetFetchSize in class ResultSQLExceptionCopyright © 2025 SingleStore. All rights reserved.