Package org.apache.parquet.format
Class CliUtils
java.lang.Object
org.apache.parquet.format.CliUtils
Utility class for parquet-cli. This is required because this module shades thriftlib which means we cannot use Thrift
classes outside of this module without adding thriftlib as a separate dependency.
-
Method Summary
-
Method Details
-
toJson
Returns the json representation of the specified Thrift object- Parameters:
tbase- the thrift object to be serialized as a json- Returns:
- the json representation of the Thrift object as a String
- Throws:
IOException- if any Thrift error occurs during the serialization
-