Package org.apache.beam.sdk.io
Enum Class FileBasedSink.CompressionType
- All Implemented Interfaces:
Serializable
,Comparable<FileBasedSink.CompressionType>
,Constable
,FileBasedSink.OutputFileHints
,FileBasedSink.WritableByteChannelFactory
- Enclosing class:
FileBasedSink<UserT,
DestinationT, OutputT>
@Deprecated
public static enum FileBasedSink.CompressionType
extends Enum<FileBasedSink.CompressionType>
implements FileBasedSink.WritableByteChannelFactory
Deprecated.
-
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 TypeMethodDescriptioncreate
(WritableByteChannel channel) Deprecated.fromCanonical
(Compression canonical) Deprecated.Deprecated.Returns the MIME type that should be used for the files that will hold the output data.Deprecated.Deprecated.Returns the enum constant of this class with the specified name.static FileBasedSink.CompressionType[]
values()
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNCOMPRESSED
Deprecated.- See Also:
-
GZIP
Deprecated.- See Also:
-
BZIP2
Deprecated.- See Also:
-
ZSTD
Deprecated.- See Also:
-
LZO
Deprecated.- See Also:
-
LZOP
Deprecated.- See Also:
-
DEFLATE
Deprecated.- See Also:
-
SNAPPY
Deprecated.- See Also:
-
-
Method Details
-
values
Deprecated.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
Deprecated.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
-
getSuggestedFilenameSuffix
Deprecated.- Specified by:
getSuggestedFilenameSuffix
in interfaceFileBasedSink.OutputFileHints
- Returns:
- an optional filename suffix, eg, ".gz" is returned for
Compression.GZIP
-
getMimeType
Deprecated.Description copied from interface:FileBasedSink.OutputFileHints
Returns the MIME type that should be used for the files that will hold the output data. May returnnull
if thisWritableByteChannelFactory
does not meaningfully change the MIME type (e.g., forCompression.UNCOMPRESSED
).- Specified by:
getMimeType
in interfaceFileBasedSink.OutputFileHints
- See Also:
-
create
Deprecated.- Specified by:
create
in interfaceFileBasedSink.WritableByteChannelFactory
- Parameters:
channel
- theWritableByteChannel
to wrap- Returns:
- the
WritableByteChannel
to be used during output - Throws:
IOException
-
fromCanonical
Deprecated.
-
Compression
.