Class DeDuplicationHandlerImpl
java.lang.Object
com.nt.udc.processor.DuplicateProcessor.DeDuplicationHandlerImpl
- All Implemented Interfaces:
IDCMethodHandler,DeDuplicationHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ShortFieldstatic final ShortFieldstatic final ShortFieldstatic final ShortField -
Constructor Summary
ConstructorsConstructorDescriptionDeDuplicationHandlerImpl(TimePartitionManager partitionMgr) Default Constructor -
Method Summary
Modifier and TypeMethodDescriptionisDuplicate(MillisField timestamp, StringField key) Determines if the event is a duplicateisDuplicate(MillisField timestamp, StringField timezoneID, StringField key) Determines if the event is a duplicate
-
Field Details
-
NO_DUPLICATE
-
DUPLICATE
-
TOO_OLD
-
FUTURE_RECORD
-
-
Constructor Details
-
DeDuplicationHandlerImpl
Default Constructor- Parameters:
partitionMgr- The partition manager
-
-
Method Details
-
isDuplicate
public ShortField isDuplicate(MillisField timestamp, StringField timezoneID, StringField key) throws Exception Determines if the event is a duplicate- Specified by:
isDuplicatein interfaceDeDuplicationHandler- Parameters:
timestamp- The timestamptimezoneID- The TimeZone ID (i.e. UTC)key- The de-duplication key to use- Returns:
- Code indicating if this event is DUPLICATE, NO_DUPLICATE, or TOO_OLD
- Throws:
Exception- if any issue occurs while trying to determine if this is a duplicate event
-
isDuplicate
Determines if the event is a duplicate- Specified by:
isDuplicatein interfaceDeDuplicationHandler- Parameters:
timestamp- The timestamp (assumed to be UTC)key- The de-duplication key to use- Returns:
- Code indicating if this event is DUPLICATE, NO_DUPLICATE, or TOO_OLD
- Throws:
Exception- if any issue occurs while trying to determine if this is a duplicate event
-