T
- the type of the result of this Operation
Operation<T>
ParameterizedRowOperation<T>
public interface RowOperation<T> extends Operation<T>
RowOperation
is a database operation that returns a row sequence.Modifier and Type | Method | Description |
---|---|---|
<A,S extends T> |
collect(java.util.stream.Collector<? super Result.Row,A,S> c) |
Provides a
Collector to reduce the sequence of rows.The result of
the Operation is the result of calling finisher on the final
accumulated result. |
RowOperation<T> |
fetchSize(long rows) |
A hint to the implementation of how many rows to fetch in each database
access.
|
RowOperation<T> |
onError(java.util.function.Consumer<java.lang.Throwable> handler) |
Provides an error handler for this
Operation . |
RowOperation<T> fetchSize(long rows) throws java.lang.IllegalArgumentException
rows
- suggested number of rows to fetch per accessRowOperation
java.lang.IllegalArgumentException
- if row < 1java.lang.IllegalStateException
- if this method had been called previously or
this Operation has been submitted.<A,S extends T> RowOperation<T> collect(java.util.stream.Collector<? super Result.Row,A,S> c)
Collector
to reduce the sequence of rows.The result of
the Operation
is the result of calling finisher on the final
accumulated result. If the Collector
is
Collector.Characteristics.UNORDERED
rows may be accumulated out of
order. If the Collector
is
Collector.Characteristics.CONCURRENT
then the sequence of rows may be
split into subsequences that are reduced separately and then combined.A
- the type of the accumulatorS
- the type of the final resultc
- the Collector. Not null.java.lang.IllegalStateException
- if this method had been called previously or
this Operation has been submitted.RowOperation<T> onError(java.util.function.Consumer<java.lang.Throwable> handler)
Operation
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.
DRAFT JDBC 4.4 EA