public static interface FragmentContext.ExecutorState
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()
Deprecated.
|
boolean |
isFailed()
Deprecated.
|
boolean |
shouldContinue()
Tells individual operations whether they should continue.
|
boolean shouldContinue()
void checkContinue()
Throws 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.)
QueryCancelledException
- if the query (fragment) should stop.void fail(Throwable t)
t
- The exception that occurred.@Deprecated boolean isFailed()
@Deprecated Throwable getFailureCause()
Copyright © 1970 The Apache Software Foundation. All rights reserved.