Enum Class NullParquetMetadataFileWriter

java.lang.Object
java.lang.Enum<NullParquetMetadataFileWriter>
io.deephaven.parquet.base.NullParquetMetadataFileWriter
All Implemented Interfaces:
ParquetMetadataFileWriter, Serializable, Comparable<NullParquetMetadataFileWriter>, java.lang.constant.Constable

public enum NullParquetMetadataFileWriter extends Enum<NullParquetMetadataFileWriter> implements ParquetMetadataFileWriter
A no-op implementation of MetadataFileWriterBase when we don't want to write metadata files for Parquet files.
  • Enum Constant Details

  • Method Details

    • values

      public static NullParquetMetadataFileWriter[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NullParquetMetadataFileWriter valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • addParquetFileMetadata

      public void addParquetFileMetadata(String parquetFilePath, org.apache.parquet.hadoop.metadata.ParquetMetadata metadata)
      Description copied from interface: ParquetMetadataFileWriter
      Add the parquet metadata for the provided parquet file to the list of metadata to be written to combined metadata files.
      Specified by:
      addParquetFileMetadata in interface ParquetMetadataFileWriter
      Parameters:
      parquetFilePath - The parquet file destination path
      metadata - The parquet metadata corresponding to the parquet file
    • writeMetadataFiles

      public void writeMetadataFiles(String metadataFilePath, String commonMetadataFilePath)
      Description copied from interface: ParquetMetadataFileWriter
      Write the combined metadata files for all metadata accumulated so far and clear the list.
      Specified by:
      writeMetadataFiles in interface ParquetMetadataFileWriter
      Parameters:
      metadataFilePath - The destination path for the "_metadata" file
      commonMetadataFilePath - The destination path for the "_common_metadata" file
    • clear

      public void clear()
      Description copied from interface: ParquetMetadataFileWriter
      Clear the list of metadata accumulated so far.
      Specified by:
      clear in interface ParquetMetadataFileWriter