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 Details

    • 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