edu.yale.cs.hadoopdb.connector
Interface DBWritable

All Known Implementing Classes:
AggTaskLargeDB.AggUserVisitsRecord, AggTaskSmallDB.AggUserVisitsRecord, GrepTaskDB.DocumentsRecord, JoinTaskDB.JoinRecord, SelectionTaskDB.RankingsRecord, UDFAggTaskDB.DocumentRecord

public interface DBWritable

DBWritable Interface. All value classes (key-value pairs read in by MapReduce jobs that access a database) need to extend DBWritable. See DBRecordReader for more information.


Method Summary
 void readFields(java.sql.ResultSet resultSet)
          Reads the fields of the object from the ResultSet.
 void write(java.sql.PreparedStatement statement)
          Sets the fields of the object in the PreparedStatement (not used currently).
 

Method Detail

readFields

void readFields(java.sql.ResultSet resultSet)
                throws java.sql.SQLException
Reads the fields of the object from the ResultSet.

Parameters:
resultSet - the ResultSet to get the fields from.
Throws:
java.sql.SQLException

write

void write(java.sql.PreparedStatement statement)
           throws java.sql.SQLException
Sets the fields of the object in the PreparedStatement (not used currently).

Parameters:
statement - the statement that the fields are put into.
Throws:
java.sql.SQLException