This project has retired. For details please refer to its Attic page.
GoraRecordWriter (Apache Gora 0.2 API)

org.apache.gora.mapreduce
Class GoraRecordWriter<K,T>

java.lang.Object
  extended by org.apache.hadoop.mapreduce.RecordWriter<K,T>
      extended by org.apache.gora.mapreduce.GoraRecordWriter<K,T>

public class GoraRecordWriter<K,T>
extends org.apache.hadoop.mapreduce.RecordWriter<K,T>

Hadoop record writer that flushes the Gora datastore regularly.


Field Summary
static org.slf4j.Logger LOG
           
 
Constructor Summary
GoraRecordWriter(DataStore<K,Persistent> store, org.apache.hadoop.mapreduce.TaskAttemptContext context)
           
 
Method Summary
 void close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
           
 void write(K key, T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.slf4j.Logger LOG
Constructor Detail

GoraRecordWriter

public GoraRecordWriter(DataStore<K,Persistent> store,
                        org.apache.hadoop.mapreduce.TaskAttemptContext context)
Method Detail

close

public void close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
           throws IOException,
                  InterruptedException
Specified by:
close in class org.apache.hadoop.mapreduce.RecordWriter<K,T>
Throws:
IOException
InterruptedException

write

public void write(K key,
                  T value)
           throws IOException,
                  InterruptedException
Specified by:
write in class org.apache.hadoop.mapreduce.RecordWriter<K,T>
Throws:
IOException
InterruptedException


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.