Class ErrorHandler.PTransformErrorHandler<ErrorT,OutputT extends POutput>
java.lang.Object
org.apache.beam.sdk.transforms.errorhandling.ErrorHandler.PTransformErrorHandler<ErrorT,OutputT>
- All Implemented Interfaces:
Serializable,AutoCloseable,ErrorHandler<ErrorT,OutputT>
- Direct Known Subclasses:
ErrorHandler.BadRecordErrorHandler
- Enclosing interface:
ErrorHandler<ErrorT,OutputT extends POutput>
public static class ErrorHandler.PTransformErrorHandler<ErrorT,OutputT extends POutput>
extends Object
implements ErrorHandler<ErrorT,OutputT>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested 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
ConstructorsConstructorDescriptionPTransformErrorHandler(PTransform<PCollection<ErrorT>, OutputT> sinkTransform, Pipeline pipeline, Coder<ErrorT> coder) Constructs a new ErrorHandler, but should not be called directly. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrorCollection(PCollection<ErrorT> errorCollection) voidclose()booleanisClosed()
-
Constructor Details
-
PTransformErrorHandler
@Internal public PTransformErrorHandler(PTransform<PCollection<ErrorT>, OutputT> sinkTransform, Pipeline pipeline, Coder<ErrorT> coder) Constructs a new ErrorHandler, but should not be called directly. Instead, call pipeline.registerErrorHandler to ensure safe pipeline construction
-
-
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
-