class ExampleUserDefinedFunctionHandler extends UserDefinedFunctionHandler {

    public String to_json(Map<String, Object> struct)
    {
        try {
            return objectMapper.writeValueAsString(struct);
        }
        catch (JsonProcessingException e) {
            throw new RuntimeException(e);
        }
    }

    public  ExampleUserDefinedFunctionHandler();

}