public class DateSplitter extends IntegerSplitter
| Constructor and Description |
|---|
DateSplitter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
dateToString(java.util.Date d)
Given a Date 'd', format it as a string for use in a SQL date
comparison operation.
|
java.util.List<InputSplit> |
split(org.apache.hadoop.conf.Configuration conf,
java.sql.ResultSet results,
java.lang.String colName)
Given a ResultSet containing one record (and already advanced to that record)
with two columns (a low value, and a high value, both of the same type), determine
a set of splits that span the given values.
|
public java.util.List<InputSplit> split(org.apache.hadoop.conf.Configuration conf, java.sql.ResultSet results, java.lang.String colName) throws java.sql.SQLException
DBSplittersplit in interface DBSplittersplit in class IntegerSplitterjava.sql.SQLExceptionprotected java.lang.String dateToString(java.util.Date d)
d - the date to format.Copyright © 2009 The Apache Software Foundation