public interface IncomingResultSet
BlockingQueue| Modifier and Type | Field and Description |
|---|---|
static java.util.List<java.lang.Object> |
END_OF_RESULTS
A zero-length row when returned indicates that there are no more
results in this result set.
|
| Modifier and Type | Method and Description |
|---|---|
java.sql.ResultSetMetaData |
getMetaData()
Return metadata information about the columns in this result set.
|
java.util.List<java.lang.Object> |
peekRow()
Retrieves, but does not remove, the head row of this result set,
returns null if there is no row currently available in this result
set, or returns END_OF_RESULTS if there are no more rows in this
result set.
|
java.util.List<java.lang.Object> |
peekRow(long timeout,
java.util.concurrent.TimeUnit unit)
Retrieves, but does not remove, the head row of this result set,
waiting up to the specified wait time if necessary for a row to become
available, or returns END_OF_RESULTS if there are no more rows in this
result set.
|
java.util.List<java.lang.Object> |
pollRow()
Retrieves and removes the head row of this result set,
returns null if there is no row currently available in this result
set, or returns END_OF_RESULTS if there are no more rows in this
result set.
|
java.util.List<java.lang.Object> |
pollRow(long timeout,
java.util.concurrent.TimeUnit unit)
Retrieves and removes the head row of this result set,
waiting up to the specified wait time if necessary for a row to become
available, or returns END_OF_RESULTS if there are no more rows in this
result set.
|
java.util.List<java.lang.Object> |
takeRow()
Retrieve and removes the head row in this result set as a List<Object>,
waiting if necessary until an element becomes available, or returning
END_OF_RESULTS if there are no more rows in this result set.
|
java.util.List<java.lang.Object> |
waitPeekRow()
Retrieves, but does not remove, the head row of this result set,
waiting if necessary until an element becomes available, or returning
END_OF_RESULTS if there are no more rows in this result set.
|
static final java.util.List<java.lang.Object> END_OF_RESULTS
java.util.List<java.lang.Object> takeRow()
throws java.lang.InterruptedException
java.lang.InterruptedException - if interrupted while waitingjava.util.List<java.lang.Object> pollRow()
java.util.List<java.lang.Object> pollRow(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
timeout - how long to wait before giving up, in units of unitunit - a TimeUnit determining how to interpret the timeout parameterjava.lang.InterruptedException - if interrupted while waitingjava.util.List<java.lang.Object> peekRow(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
timeout - how long to wait before giving up, in units of unitunit - a TimeUnit determining how to interpret the timeout parameterjava.lang.InterruptedException - if interrupted while waitingjava.util.List<java.lang.Object> peekRow()
java.util.List<java.lang.Object> waitPeekRow()
throws java.lang.InterruptedException
java.lang.InterruptedException - if interrupted while waitingjava.sql.ResultSetMetaData getMetaData()
throws java.lang.InterruptedException
java.lang.InterruptedException - if interrupted while waitingCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.