How to compress the query result in dgraph4j?

I executed a query in java(using dgraph4j), and the result is about 3MB. it takes about 1.5 second to get the result.

is there a compress option in dgraph4j?