Class ErrorHandler.DefaultErrorHandler<ErrorT,OutputT extends POutput>
java.lang.Object
org.apache.beam.sdk.transforms.errorhandling.ErrorHandler.DefaultErrorHandler<ErrorT,OutputT>
- All Implemented Interfaces:
Serializable,AutoCloseable,ErrorHandler<ErrorT,OutputT>
- Enclosing interface:
ErrorHandler<ErrorT,OutputT extends POutput>
@Internal
public static class ErrorHandler.DefaultErrorHandler<ErrorT,OutputT extends POutput>
extends Object
implements ErrorHandler<ErrorT,OutputT>
A default, placeholder error handler that exists to allow usage of .addErrorCollection()
without effects. This enables more simple codepaths without checking for whether the user
configured an error handler or not.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.beam.sdk.transforms.errorhandling.ErrorHandler
ErrorHandler.BadRecordErrorHandler<OutputT extends POutput>, ErrorHandler.DefaultErrorHandler<ErrorT,OutputT extends POutput>, ErrorHandler.PTransformErrorHandler<ErrorT, OutputT extends POutput> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrorCollection(PCollection<ErrorT> errorCollection) voidclose()booleanisClosed()
-
Constructor Details
-
DefaultErrorHandler
public DefaultErrorHandler()
-
-
Method Details
-
addErrorCollection
- Specified by:
addErrorCollectionin interfaceErrorHandler<ErrorT,OutputT extends POutput>
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceErrorHandler<ErrorT,OutputT extends POutput>
-
getOutput
- Specified by:
getOutputin interfaceErrorHandler<ErrorT,OutputT extends POutput>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-