use of com.yahoo.sketches.pig.theta.Estimate in project sketches-pig by DataSketches.
the class EstimateTest method testNullEmpty.
@Test
public void testNullEmpty() throws IOException {
EvalFunc<Double> func = new Estimate();
Tuple inputTuple = null;
Double returnValue = func.exec(inputTuple);
assertNull(returnValue);
inputTuple = TupleFactory.getInstance().newTuple(0);
returnValue = func.exec(inputTuple);
assertNull(returnValue);
}
Aggregations