Package org.apache.parquet.format
Class CliUtils
- java.lang.Object
-
- org.apache.parquet.format.CliUtils
-
public class CliUtils extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringtoJson(org.apache.thrift.TBase<?,?> tbase)Returns the json representation of the specified Thrift object
-
-
-
Method Detail
-
toJson
public static String toJson(org.apache.thrift.TBase<?,?> tbase) throws IOException
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
-
-