public static class OperatorFixture.MockExecutorState extends Object implements FragmentContext.ExecutorState
| Constructor and Description |
|---|
MockExecutorState() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkContinue()
Check if an operation should continue.
|
void |
fail(Throwable t)
Inform the executor if a exception occurs and fragment should be failed.
|
Throwable |
getFailureCause() |
boolean |
isFailed() |
boolean |
shouldContinue()
Tells individual operations whether they should continue.
|
public boolean shouldContinue()
FragmentContext.ExecutorStateshouldContinue in interface FragmentContext.ExecutorStatepublic void fail(Throwable t)
FragmentContext.ExecutorStatefail in interface FragmentContext.ExecutorStatet - The exception that occurred.public boolean isFailed()
isFailed in interface FragmentContext.ExecutorStatepublic Throwable getFailureCause()
getFailureCause in interface FragmentContext.ExecutorStatepublic void checkContinue()
FragmentContext.ExecutorStateThrows QueryCancelledException if the query (fragment) should stop. The fragment executor interprets this as an exception it, itself, requested, and will call the operator's close() method to release resources. Operators should not catch and handle this exception, and should only call this method when the operator holds no transient resources (such as local variables.)
checkContinue in interface FragmentContext.ExecutorStateCopyright © 2022 The Apache Software Foundation. All rights reserved.