edu.arsc.multisearch
Class ResultSetOutputFormat.ResultSetRecordWriter

java.lang.Object
  extended by edu.arsc.multisearch.ResultSetOutputFormat.ResultSetRecordWriter
All Implemented Interfaces:
org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,ResultSetWritable>
Enclosing class:
ResultSetOutputFormat

protected static class ResultSetOutputFormat.ResultSetRecordWriter
extends java.lang.Object
implements org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,ResultSetWritable>


Constructor Summary
ResultSetOutputFormat.ResultSetRecordWriter(java.io.DataOutputStream dos)
          Create a new writer with given output stream.
 
Method Summary
 void close(org.apache.hadoop.mapred.Reporter reporter)
          Close objects
 void write(org.apache.hadoop.io.Text text, ResultSetWritable set)
          Write this value to the stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultSetOutputFormat.ResultSetRecordWriter

public ResultSetOutputFormat.ResultSetRecordWriter(java.io.DataOutputStream dos)
Create a new writer with given output stream.

Parameters:
DataOutputStream -
Method Detail

close

public void close(org.apache.hadoop.mapred.Reporter reporter)
Close objects

Specified by:
close in interface org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,ResultSetWritable>

write

public void write(org.apache.hadoop.io.Text text,
                  ResultSetWritable set)
           throws java.io.IOException
Write this value to the stream

Specified by:
write in interface org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.Text,ResultSetWritable>
Parameters:
Text -
ResultSet -
Throws:
java.io.IOException