- Type Parameters:
K - The type of Key received from the reducer
V - The type of Value received from the reducer
- All Implemented Interfaces:
- org.apache.hadoop.mapred.RecordWriter<K,V>
- Direct Known Subclasses:
- DefaultDynamoDBRecordWriter
public abstract class AbstractDynamoDBRecordWriter<K,V>
extends Object
implements org.apache.hadoop.mapred.RecordWriter<K,V>
AbstractDynamoDBRecordWriter does all the backend work for reading in key-value pairs from the
reducer and writing them to DynamoDB. To use the DynamoDBRecordWriter class, you need to subclass
this and overwrite the convertValueToDynamoDBItemWritable with a conversion from the input Value
to a DynamoDBItemWritable. As an alternative, you can also use DefaultDynamoDBRecordWriter, and
do the conversion to a DynamoDBItemWritable inside of the reducer.