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(URI parquetFileURI, 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:
      parquetFileURI - The parquet file destination URI
      metadata - The parquet metadata corresponding to the parquet file
    • writeMetadataFiles

      public void writeMetadataFiles(CompletableOutputStream metadataOutputStream, CompletableOutputStream commonMetadataOutputStream)
      Description copied from interface: ParquetMetadataFileWriter
      Write the combined metadata to the provided streams and clear the metadata accumulated so far. The output streams should be marked as CompletableOutputStream.done() after writing is finished.
      Specified by:
      writeMetadataFiles in interface ParquetMetadataFileWriter
      Parameters:
      metadataOutputStream - The output stream for the "_metadata" file
      commonMetadataOutputStream - The output stream for the "_common_metadata" file