public class StreamingResult extends Result
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 |
|---|
StreamingResult(Statement stmt,
boolean binaryProtocol,
long maxRows,
com.singlestore.jdbc.client.ColumnDecoder[] metadataList,
Reader reader,
com.singlestore.jdbc.client.Context context,
int fetchSize,
ClosableLock lock,
int resultSetType,
boolean closeOnCompletion,
boolean traceEnable)
Constructor
|
| 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()
Position resultset to next row
|
boolean |
previous() |
boolean |
relative(int rows) |
void |
setFetchSize(int fetchSize) |
boolean |
streaming()
Indicate of current result-set is a streaming result-set
|
abort, addRowData, cancelRowUpdates, checkClose, checkNotForwardOnly, clearWarnings, close, closeFromStmtClose, 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, wasNullpublic StreamingResult(Statement stmt, boolean binaryProtocol, long maxRows, com.singlestore.jdbc.client.ColumnDecoder[] metadataList, Reader reader, com.singlestore.jdbc.client.Context context, int fetchSize, ClosableLock lock, int resultSetType, boolean closeOnCompletion, boolean traceEnable) throws SQLException
stmt - statement that initiate this resultbinaryProtocol - is result-set binary encodedmaxRows - maximum row numbermetadataList - column metadatareader - packet readercontext - connection contextfetchSize - fetch sizelock - thread safe lockerresultSetType - result-set typecloseOnCompletion - close statement on completiontraceEnable - can network log be loggedSQLException - if any error occurspublic boolean streaming()
Resultpublic void fetchRemaining()
throws SQLException
fetchRemaining in class ResultSQLException - if any error occurpublic boolean next()
throws SQLException
Resultnext in interface ResultSetnext in class ResultSQLException - if any error occurspublic 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 fetchSize)
throws SQLException
setFetchSize in interface ResultSetsetFetchSize in class ResultSQLExceptionCopyright © 2025 SingleStore. All rights reserved.