DBSplitter (Hadoop 0.20.2-cdh3u0 API)
Date: 2011-03-25

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.hadoop.mapreduce.lib.db
Interface DBSplitter

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

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

Method Detail

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009 The Apache Software Foundation