public static class ErrorHandler.PTransformErrorHandler<ErrorT,OutputT extends POutput> extends java.lang.Object implements ErrorHandler<ErrorT,OutputT>
| Modifier and Type | Class and Description |
|---|---|
static class |
ErrorHandler.PTransformErrorHandler.WriteErrorMetrics<ErrorT> |
ErrorHandler.BadRecordErrorHandler<OutputT extends POutput>, ErrorHandler.DefaultErrorHandler<ErrorT,OutputT extends POutput>, ErrorHandler.PTransformErrorHandler<ErrorT,OutputT extends POutput>| Constructor and Description |
|---|
PTransformErrorHandler(PTransform<PCollection<ErrorT>,OutputT> sinkTransform,
Pipeline pipeline,
Coder<ErrorT> coder)
Constructs a new ErrorHandler, but should not be called directly.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorCollection(PCollection<ErrorT> errorCollection) |
void |
close() |
OutputT |
getOutput() |
boolean |
isClosed() |
@Internal public PTransformErrorHandler(PTransform<PCollection<ErrorT>,OutputT> sinkTransform, Pipeline pipeline, Coder<ErrorT> coder)
public void addErrorCollection(PCollection<ErrorT> errorCollection)
addErrorCollection in interface ErrorHandler<ErrorT,OutputT extends POutput>public boolean isClosed()
isClosed in interface ErrorHandler<ErrorT,OutputT extends POutput>public OutputT getOutput()
getOutput in interface ErrorHandler<ErrorT,OutputT extends POutput>public void close()
close in interface java.lang.AutoCloseable