Class GroupWriteSupport

java.lang.Object
org.apache.parquet.hadoop.api.WriteSupport<org.apache.parquet.example.data.Group>
org.gridgain.internal.sql.copy.parquet.GroupWriteSupport

public class GroupWriteSupport extends org.apache.parquet.hadoop.api.WriteSupport<org.apache.parquet.example.data.Group>
Initiates a write session for writing to a Parquet file.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.parquet.hadoop.api.WriteSupport

    org.apache.parquet.hadoop.api.WriteSupport.FinalizedWriteContext, org.apache.parquet.hadoop.api.WriteSupport.WriteContext
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The configuration key for the Parquet schema.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.parquet.schema.MessageType
    getSchema(org.apache.hadoop.conf.Configuration configuration)
    Gets the schema to be used for writing.
    org.apache.parquet.hadoop.api.WriteSupport.WriteContext
    init(org.apache.hadoop.conf.Configuration configuration)
    void
    prepareForWrite(org.apache.parquet.io.api.RecordConsumer recordConsumer)
    static void
    setSchema(org.apache.parquet.schema.MessageType schema, org.apache.hadoop.conf.Configuration configuration)
    Sets the schema to be used for writing.
    void
    write(org.apache.parquet.example.data.Group record)

    Methods inherited from class org.apache.parquet.hadoop.api.WriteSupport

    finalizeWrite, getName, init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • PARQUET_DEFAULT_SCHEMA

      public static final String PARQUET_DEFAULT_SCHEMA
      The configuration key for the Parquet schema.
      See Also:
  • Method Details

    • setSchema

      public static void setSchema(org.apache.parquet.schema.MessageType schema, org.apache.hadoop.conf.Configuration configuration)
      Sets the schema to be used for writing.
      Parameters:
      schema - The schema to be used for writing.
      configuration - The configuration to set the schema in.
    • getSchema

      public static org.apache.parquet.schema.MessageType getSchema(org.apache.hadoop.conf.Configuration configuration)
      Gets the schema to be used for writing.
      Parameters:
      configuration - The configuration to get the schema from.
    • init

      public org.apache.parquet.hadoop.api.WriteSupport.WriteContext init(org.apache.hadoop.conf.Configuration configuration)
      Specified by:
      init in class org.apache.parquet.hadoop.api.WriteSupport<org.apache.parquet.example.data.Group>
    • prepareForWrite

      public void prepareForWrite(org.apache.parquet.io.api.RecordConsumer recordConsumer)
      Specified by:
      prepareForWrite in class org.apache.parquet.hadoop.api.WriteSupport<org.apache.parquet.example.data.Group>
    • write

      public void write(org.apache.parquet.example.data.Group record)
      Specified by:
      write in class org.apache.parquet.hadoop.api.WriteSupport<org.apache.parquet.example.data.Group>