@Override public void readFields(DataInput input) throws IOException { super.readFields(input); init(); } }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); initialize(); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); init(); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); init(); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); init(); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); initialize(); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); init(); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); initialize(); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); init(); } }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); init(); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); init(); }
@Override public int hashCode() { return isConstantExpression() ? 0 : super.hashCode(); }
public final void readFields(DataInput input, Configuration conf) throws IOException { super.readFields(input); aggregator = newServerAggregator(conf); }
@Override public int hashCode() { return isConstantExpression() ? 0 : super.hashCode(); }
/** * @param timeUnit - unit of time to round up to. * Creates a {@link RoundDateExpression} with default multiplier of 1. */ public static Expression create(Expression expr, TimeUnit timeUnit) throws SQLException { return create(expr, timeUnit, 1); }
/** * Creates a {@link CeilDecimalExpression} with a default scale of 0 used for rounding. * */ public static Expression create(Expression expr) throws SQLException { return create(expr, 0); }
/** * @param timeUnit - unit of time to round up to. * Creates a {@link CeilDateExpression} with default multiplier of 1. */ public static Expression create(Expression expr, TimeUnit timeUnit) throws SQLException { return create(expr, timeUnit, 1); }
/** * Creates a {@link RoundDecimalExpression} with a default scale of 0 used for rounding. * */ public static Expression create(Expression expr) throws SQLException { return create(expr, 0); }
public Aggregator[] newAggregators(Configuration conf) { Aggregator[] aggregators = new Aggregator[functions.length]; for (int i = 0; i < functions.length; i++) { aggregators[i] = functions[i].newServerAggregator(conf); } return aggregators; }
@Override public Aggregator[] newAggregators() { Aggregator[] aggregators = new Aggregator[functions.length]; for (int i = 0; i < functions.length; i++) { aggregators[i] = functions[i].newClientAggregator(); } return aggregators; }