Package org.apache.calcite.util
Class CancelFlag
java.lang.Object
org.apache.calcite.util.CancelFlag
CancelFlag is used to post and check cancellation requests.
Pass it to RelOptPlanner
by putting it into a Context
.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears any pending cancellation request.boolean
Returns whether a cancellation has been requested.void
Requests a cancellation.
-
Field Details
-
atomicBoolean
The flag that holds the cancel state. Feel free to use the flag directly.
-
-
Constructor Details
-
CancelFlag
-
-
Method Details
-
isCancelRequested
public boolean isCancelRequested()Returns whether a cancellation has been requested. -
requestCancel
public void requestCancel()Requests a cancellation. -
clearCancel
public void clearCancel()Clears any pending cancellation request.
-