Package io.deephaven.parquet.base
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParquetFileMetadata(String parquetFilePath, org.apache.parquet.hadoop.metadata.ParquetMetadata metadata) Add the parquet metadata for the provided parquet file to the list of metadata to be written to combined metadata files.voidclear()Clear the list of metadata accumulated so far.Returns the enum constant of this class with the specified name.static NullParquetMetadataFileWriter[]values()Returns an array containing the constants of this enum class, in the order they are declared.voidwriteMetadataFiles(String metadataFilePath, String commonMetadataFilePath) Write the combined metadata files for all metadata accumulated so far and clear the list.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
addParquetFileMetadata
public void addParquetFileMetadata(String parquetFilePath, org.apache.parquet.hadoop.metadata.ParquetMetadata metadata) Description copied from interface:ParquetMetadataFileWriterAdd the parquet metadata for the provided parquet file to the list of metadata to be written to combined metadata files.- Specified by:
addParquetFileMetadatain interfaceParquetMetadataFileWriter- Parameters:
parquetFilePath- The parquet file destination pathmetadata- The parquet metadata corresponding to the parquet file
-
writeMetadataFiles
Description copied from interface:ParquetMetadataFileWriterWrite the combined metadata files for all metadata accumulated so far and clear the list.- Specified by:
writeMetadataFilesin interfaceParquetMetadataFileWriter- Parameters:
metadataFilePath- The destination path for the "_metadata" filecommonMetadataFilePath- The destination path for the "_common_metadata" file
-
clear
public void clear()Description copied from interface:ParquetMetadataFileWriterClear the list of metadata accumulated so far.- Specified by:
clearin interfaceParquetMetadataFileWriter
-