Class WriteSupport.WriteContext

java.lang.Object
org.apache.parquet.hadoop.api.WriteSupport.WriteContext
Enclosing class:
WriteSupport<T>

public static final class WriteSupport.WriteContext extends Object
information to be persisted in the file
  • Constructor Details

    • WriteContext

      public WriteContext(org.apache.parquet.schema.MessageType schema, Map<String,String> extraMetaData)
      Parameters:
      schema - the schema of the data
      extraMetaData - application specific metadata to add in the file
      Throws:
      NullPointerException - if schema or extraMetaData is null
  • Method Details

    • getSchema

      public org.apache.parquet.schema.MessageType getSchema()
      Returns:
      the schema of the file
    • getExtraMetaData

      public Map<String,String> getExtraMetaData()
      Returns:
      application specific metadata