Source from reading from a database via a JDBC connection. Underlying
database reading is provided by DBInputFormat.
A type that is input via this class must be a Writable that also implements
DBWritable. On the DBWritable.readFields(java.sql.ResultSet) method
needs to be fully implemented form DBWritable.
Field Summary
Fields inherited from class org.apache.crunch.io.impl.FileSourceImpl
getLastModifiedAt(org.apache.hadoop.conf.Configuration configuration)
Returns the time (in milliseconds) that this Source was most recently
modified (e.g., because an input file was edited or new files were added to
a directory.)
long
getSize(org.apache.hadoop.conf.Configuration configuration)
Returns the number of bytes in this Source.
Methods inherited from class org.apache.crunch.io.impl.FileSourceImpl
Returns the time (in milliseconds) that this Source was most recently
modified (e.g., because an input file was edited or new files were added to
a directory.)
Specified by:
getLastModifiedAt in interface Source<T extends org.apache.hadoop.mapreduce.lib.db.DBWritable & org.apache.hadoop.io.Writable>
Overrides:
getLastModifiedAt in class FileSourceImpl<T extends org.apache.hadoop.mapreduce.lib.db.DBWritable & org.apache.hadoop.io.Writable>