Interface DBSplitter

All Known Implementing Classes:
BigDecimalSplitter, BooleanSplitter, DateSplitter, FloatSplitter, IntegerSplitter, OracleDateSplitter, TextSplitter

@Public @Evolving public interface DBSplitter
DBSplitter will generate DBInputSplits to use with DataDrivenDBInputFormat. DataDrivenDBInputFormat needs to interpolate between two values that represent the lowest and highest valued records to import. Depending on the data-type of the column, this requires different behavior. DBSplitter implementations should perform this for a data type or family of data types.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • Method Details

    • split

      List<InputSplit> split(Configuration conf, ResultSet results, String colName) throws SQLException
      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.
      Throws:
      SQLException