ObjectInspector udfInspector = udf.initialize(objectInspectors);
checkArgument(udfInspector instanceof IntObjectInspector, "expected IntObjectInspector: %s", udfInspector);
IntObjectInspector inspector = (IntObjectInspector) udfInspector;
Object result = udf.evaluate(deferredObjects);
HiveKey hiveKey = new HiveKey();
hiveKey.setHashCode(inspector.get(result));
return Optional.of(new DefaultHivePartitioner<>().getBucket(hiveKey, null, bucketCount));
}