public class StreamingResult extends Result
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 |
|---|
StreamingResult(Statement stmt,
boolean binaryProtocol,
long maxRows,
ColumnDefinitionPacket[] metadataList,
PacketReader reader,
Context context,
int fetchSize,
ReentrantLock lock,
int resultSetType,
boolean closeOnCompletion,
boolean traceEnable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
absolute(int idx) |
void |
afterLast() |
void |
beforeFirst() |
void |
fetchRemaining()
When protocol has a current Streaming result (this) fetch all to permit another query is
executing.
|
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 fetchSize) |
boolean |
streaming() |
abort, addRowData, cancelRowUpdates, checkClose, checkNotForwardOnly, clearWarnings, close, closeFromStmtClose, 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, wasNullpublic StreamingResult(Statement stmt, boolean binaryProtocol, long maxRows, ColumnDefinitionPacket[] metadataList, PacketReader reader, Context context, int fetchSize, ReentrantLock lock, int resultSetType, boolean closeOnCompletion, boolean traceEnable) throws SQLException
SQLExceptionpublic void fetchRemaining()
throws SQLException
fetchRemaining in class ResultSQLException - if any error occurpublic boolean next()
throws SQLException
next in interface ResultSetnext in class ResultSQLExceptionpublic 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()
public void setFetchSize(int fetchSize)
throws SQLException
SQLExceptionCopyright © 2023 SingleStore. All rights reserved.