com.splout.db.hadoop
Class TupleSQLite4JavaOutputFormat.TupleSQLRecordWriter
java.lang.Object
  
org.apache.hadoop.mapreduce.RecordWriter<com.datasalt.pangool.io.ITuple,org.apache.hadoop.io.NullWritable>
      
com.splout.db.hadoop.TupleSQLite4JavaOutputFormat.TupleSQLRecordWriter
- Enclosing class:
 - TupleSQLite4JavaOutputFormat
 
public class TupleSQLite4JavaOutputFormat.TupleSQLRecordWriter
- extends org.apache.hadoop.mapreduce.RecordWriter<com.datasalt.pangool.io.ITuple,org.apache.hadoop.io.NullWritable>
 
A RecordWriter that accepts an Int(Partition), a Tuple and delegates to a SQLiteOutputFormat.SQLRecordWriter converting the
 Tuple into SQL and assigning the partition that comes in the Key.
 
| 
Method Summary | 
 void | 
close(org.apache.hadoop.mapreduce.TaskAttemptContext ctx)
 
            | 
 void | 
write(com.datasalt.pangool.io.ITuple tuple,
      org.apache.hadoop.io.NullWritable ignore)
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TupleSQLite4JavaOutputFormat.TupleSQLRecordWriter
public TupleSQLite4JavaOutputFormat.TupleSQLRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context)
write
public void write(com.datasalt.pangool.io.ITuple tuple,
                  org.apache.hadoop.io.NullWritable ignore)
           throws java.io.IOException,
                  java.lang.InterruptedException
- Specified by:
 write in class org.apache.hadoop.mapreduce.RecordWriter<com.datasalt.pangool.io.ITuple,org.apache.hadoop.io.NullWritable>
 
- Throws:
 java.io.IOException
java.lang.InterruptedException
 
close
public void close(org.apache.hadoop.mapreduce.TaskAttemptContext ctx)
           throws java.io.IOException,
                  java.lang.InterruptedException
- Specified by:
 close in class org.apache.hadoop.mapreduce.RecordWriter<com.datasalt.pangool.io.ITuple,org.apache.hadoop.io.NullWritable>
 
- Throws:
 java.io.IOException
java.lang.InterruptedException
 
Copyright © 2012-2013 Datasalt Systems S.L.. All Rights Reserved.