public class CounterBasedErrorHandler extends java.lang.Object implements ErrorHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ERROR_COUNT |
static java.lang.String |
ERROR_HANDLER_COUNTER_GROUP |
static java.lang.String |
RECORD_COUNT |
| Constructor and Description |
|---|
CounterBasedErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
long |
getRecordCount(java.lang.String signature) |
void |
onError(java.lang.String uniqueSignature,
java.lang.Exception e)
Method invoked when an error occurs processing of tuple
|
void |
onSuccess(java.lang.String uniqueSignature)
Method invoked on success processing of tuple
|
public static final java.lang.String ERROR_HANDLER_COUNTER_GROUP
public static final java.lang.String ERROR_COUNT
public static final java.lang.String RECORD_COUNT
public void onSuccess(java.lang.String uniqueSignature)
ErrorHandleronSuccess in interface ErrorHandleruniqueSignature - a unique signature to identify the operatorpublic void onError(java.lang.String uniqueSignature,
java.lang.Exception e)
ErrorHandleronError in interface ErrorHandleruniqueSignature - a unique signature to identify the operatore - Exception encountered while processing inputpublic long getRecordCount(java.lang.String signature)
Copyright © 2007-2025 The Apache Software Foundation