APISonar


org.apache.spark.sql.types.StructType.json

> org > apache > spark > sql > types > StructType > json
org APIs apache APIs spark APIs sql APIs types APIs StructType APIs json APIs

Example 1
private StructType sparkSchema;

    public org.apache.parquet.hadoop.api.WriteSupport.WriteContext init(final Configuration configuration) {
        final Map<String, String> extraMeta = new HashMap<>();
        if (null != sparkSchema) {
            extraMeta.put(ParquetReadSupport.SPARK_METADATA_KEY(), sparkSchema.json());
        }
        return new WriteContext(schema, extraMeta);
    }