@InterfaceAudience.Public @InterfaceStability.Evolving public class BigDecimalSplitter extends Object implements DBSplitter
构造器和说明 |
---|
BigDecimalSplitter() |
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 DBSplitter
SQLException
protected BigDecimal tryDivide(BigDecimal numerator, BigDecimal denominator)
Copyright © 2009 The Apache Software Foundation