OracleDateSplitter (Apache Hadoop Main 3.5.0 API)
Description: declaration: package: org.apache.hadoop.mapreduce.lib.db, class: OracleDateSplitter

Package org.apache.hadoop.mapreduce.lib.db

# 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`

@Public @Evolving public class OracleDateSplitter extends DateSplitter
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
  Constructor
  Description
  `OracleDateSplitter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected String`
  `dateToString(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`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### OracleDateSplitter

    public OracleDateSplitter()

- ## Method Details

  - ### dateToString

    protected String dateToString(Date d)
    Description copied from class: `DateSplitter`
    Given a Date 'd', format it as a string for use in a SQL date comparison operation.
    Overrides:
      `dateToString` in class `DateSplitter`
    Parameters:
      `d` - the date to format.
    Returns:
      the string representing this date in SQL with any appropriate quotation characters, etc.