Class CancelFlag

java.lang.Object
org.apache.calcite.util.CancelFlag

public class CancelFlag extends Object
CancelFlag is used to post and check cancellation requests.

Pass it to RelOptPlanner by putting it into a Context.

  • Field Details

    • atomicBoolean

      public final AtomicBoolean atomicBoolean
      The flag that holds the cancel state. Feel free to use the flag directly.
  • Constructor Details

  • 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.