Interface OperationHints
- All Known Subinterfaces:
OperationObserver
public interface OperationHints
Defines API that allows a DataNode to obtain information about query execution strategy.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturnstrueto indicate that any results of a select operation should be returned as a ResultIterator.default booleanReturnstrueif an iterated result keeps its connection to itself until the ResultIterator is closed, so that no other statement can run on that connection while the ResultSet is open.
-
Method Details
-
isIteratedResult
default boolean isIteratedResult()Returnstrueto indicate that any results of a select operation should be returned as a ResultIterator.falseis returned when the results are expected as a list. -
isIteratorExclusiveConnection
default boolean isIteratorExclusiveConnection()Returnstrueif an iterated result keeps its connection to itself until the ResultIterator is closed, so that no other statement can run on that connection while the ResultSet is open. Returnsfalseif the connection belongs to a caller-managed transaction, which may run other statements (queries, fault resolution, commits) while the iterator is open. Only meaningful whenisIteratedResult()is true. Adapters use it to decide whether a result can be streamed, as some drivers lock the connection for the duration of a streamed result. The default isfalse.- Since:
- 5.0
-