in src/main/java/org/apache/datasketches/hive/theta/IntersectSketchUDAF.java [64:80]
public GenericUDAFEvaluator getEvaluator(final GenericUDAFParameterInfo info)
throws SemanticException {
final ObjectInspector[] inspectors = info.getParameterObjectInspectors();
if (inspectors.length < 1) {
throw new UDFArgumentException("Please specify at least 1 argument");
}
if (inspectors.length > 2) {
throw new
UDFArgumentTypeException(inspectors.length - 1, "Please specify no more than 2 arguments");
}
ObjectInspectorValidator.validateGivenPrimitiveCategory(inspectors[0], 0,
PrimitiveCategory.BINARY);
if (inspectors.length > 1) {
ObjectInspectorValidator.validateIntegralParameter(inspectors[1], 1);
}
return new IntersectSketchUDAFEvaluator();
}