gianm commented on code in PR #16911:
URL: https://github.com/apache/druid/pull/16911#discussion_r1742323730


##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/kernel/LimitHintJsonIncludeFilter.java:
##########


Review Comment:
   It's this API: 
https://fasterxml.github.io/jackson-annotations/javadoc/2.9/com/fasterxml/jackson/annotation/JsonInclude.Include.html#CUSTOM
   
   > Value that indicates that separate `filter` Object (specified by 
[JsonInclude.valueFilter()](https://fasterxml.github.io/jackson-annotations/javadoc/2.9/com/fasterxml/jackson/annotation/JsonInclude.html#valueFilter())
 for value itself, and/or 
[JsonInclude.contentFilter()](https://fasterxml.github.io/jackson-annotations/javadoc/2.9/com/fasterxml/jackson/annotation/JsonInclude.html#contentFilter())
 for contents of structured types) is to be used for determining inclusion 
criteria. Filter object's equals() method is called with value to serialize; if 
it returns true value is excluded (that is, filtered out); if false value is 
included.
   
   It's kind of goofy, but it's the only tool Jackson provides us for keeping 
the serialized JSON clean other than "include non-null", "include non-default", 
and "include non-empty".



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to