org.apache.hadoop.mapreduce.lib.db
Class DBInputFormat.NullDBWritable
java.lang.Object
org.apache.hadoop.mapreduce.lib.db.DBInputFormat.NullDBWritable
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable, DBWritable
- Direct Known Subclasses:
- DBInputFormat.NullDBWritable
- Enclosing class:
- DBInputFormat<T extends DBWritable>
public static class DBInputFormat.NullDBWritable
- extends java.lang.Object
- implements DBWritable, org.apache.hadoop.io.Writable
A Class that does nothing, implementing DBWritable
Method Summary |
void |
readFields(java.io.DataInput in)
|
void |
readFields(java.sql.ResultSet arg0)
Reads the fields of the object from the ResultSet . |
void |
write(java.io.DataOutput out)
|
void |
write(java.sql.PreparedStatement arg0)
Sets the fields of the object in the PreparedStatement . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBInputFormat.NullDBWritable
public DBInputFormat.NullDBWritable()
readFields
public void readFields(java.io.DataInput in)
throws java.io.IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
readFields
public void readFields(java.sql.ResultSet arg0)
throws java.sql.SQLException
- Description copied from interface:
DBWritable
- Reads the fields of the object from the
ResultSet
.
- Specified by:
readFields
in interface DBWritable
- Parameters:
arg0
- the ResultSet
to get the fields from.
- Throws:
java.sql.SQLException
write
public void write(java.io.DataOutput out)
throws java.io.IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
write
public void write(java.sql.PreparedStatement arg0)
throws java.sql.SQLException
- Description copied from interface:
DBWritable
- Sets the fields of the object in the
PreparedStatement
.
- Specified by:
write
in interface DBWritable
- Parameters:
arg0
- the statement that the fields are put into.
- Throws:
java.sql.SQLException
Copyright © 2009 The Apache Software Foundation