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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParquetFileMetadata
(URI parquetFileURI, 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.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.void
writeMetadataFiles
(CompletableOutputStream metadataOutputStream, CompletableOutputStream commonMetadataOutputStream) Write the combined metadata to the provided streams and clear the metadata accumulated so far.
-
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(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 interfaceParquetMetadataFileWriter
- Parameters:
parquetFileURI
- The parquet file destination URImetadata
- 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 asCompletableOutputStream.done()
after writing is finished.- Specified by:
writeMetadataFiles
in interfaceParquetMetadataFileWriter
- Parameters:
metadataOutputStream
- The output stream for the "_metadata" filecommonMetadataOutputStream
- The output stream for the "_common_metadata" file
-