Druid post aggregations query java implementation

Hi Guys,
I want to implement below postAggregations related query in java format,

Can any one guide or provide me its equivalent java source code API for below postAggregations module?

{

“queryType”: “groupBy”,

“dataSource”: “”,

“granularity”: “day”,

“dimensions”: [""],

“intervals”: [“2018-05-23T01:56:40.570/2018-05-23T02:56:40.570”],

“threshold”: 5,

“aggregations”: [{

“type”: “longSum”,

“name”: “”,

“fieldName”: “”

},

{

“type”: “doubleSum”,

“name”: “”,

“fieldName”: “”

}, {

“type”: “doubleSum”,

    "name": "<field3 name>",

    "fieldName": "<actual field3>"

}

],

"postAggregations": [{

** “type”: “javascript”,**

** “name”: “result”,**

** “fieldNames”: ["", “”,""],**

__ “function”: “function(, ,) { return ((*)*100)+; }”__

** }]**

}

Thanks.

Regards,

MK.