@InterfaceAudience.Public @InterfaceStability.Evolving public class BigDecimalSplitter extends Object implements DBSplitter
Constructor and Description |
---|
BigDecimalSplitter() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected BigDecimal |
tryDivide(BigDecimal numerator,
BigDecimal denominator)
Divide numerator by denominator.
|
public List<InputSplit> split(Configuration conf, ResultSet results, String colName) throws SQLException
DBSplitter
split
in interface DBSplitter
SQLException
protected BigDecimal tryDivide(BigDecimal numerator, BigDecimal denominator)
Copyright © 2018 Apache Software Foundation. All rights reserved.