Class OracleDateSplitter
java.lang.Object
org.apache.hadoop.mapreduce.lib.db.IntegerSplitter
org.apache.hadoop.mapreduce.lib.db.DateSplitter
org.apache.hadoop.mapreduce.lib.db.OracleDateSplitter
- All Implemented Interfaces:
DBSplitter
Implement DBSplitter over date/time values returned by an Oracle db.
Make use of logic from DateSplitter, since this just needs to use
some Oracle-specific functions on the formatting end when generating
InputSplits.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdateToString(Date d) Given a Date 'd', format it as a string for use in a SQL date comparison operation.Methods inherited from class org.apache.hadoop.mapreduce.lib.db.DateSplitter
split
-
Constructor Details
-
OracleDateSplitter
public OracleDateSplitter()
-
-
Method Details
-
dateToString
Description copied from class:DateSplitterGiven a Date 'd', format it as a string for use in a SQL date comparison operation.- Overrides:
dateToStringin classDateSplitter- Parameters:
d- the date to format.- Returns:
- the string representing this date in SQL with any appropriate quotation characters, etc.
-