@InterfaceAudience.Public @InterfaceStability.Evolving public class DateSplitter extends IntegerSplitter
Constructor and Description |
---|
DateSplitter() |
Modifier and Type | Method and Description |
---|---|
protected String |
dateToString(Date d)
Given a Date 'd', format it as a string for use in a SQL date
comparison operation.
|
List<InputSplit> |
split(Configuration conf,
ResultSet results,
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 DateSplitter()
public List<InputSplit> split(Configuration conf, ResultSet results, String colName) throws SQLException
DBSplitter
split
in interface DBSplitter
split
in class IntegerSplitter
SQLException
protected String dateToString(Date d)
d
- the date to format.Copyright © 2018 Apache Software Foundation. All rights reserved.