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 ConstantsEnum ConstantDescriptionDeprecated.SeeCompression.BZIP2.Deprecated.SeeCompression.DEFLATE.Deprecated.SeeCompression.GZIP.Deprecated.SeeCompression.LZO.Deprecated.SeeCompression.LZOP.Deprecated.SeeCompression.SNAPPY.Deprecated.Deprecated.SeeCompression.ZSTD. -
Method Summary
Modifier and TypeMethodDescriptioncreate(WritableByteChannel channel) Deprecated.Returns theWritableByteChannelto be used during output.fromCanonical(Compression canonical) Deprecated.Deprecated.Returns the MIME type that should be used for the files that will hold the output data.Deprecated.Returns an optional filename suffix, eg, ".gz" is returned forCompression.GZIP.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. -
GZIP
Deprecated.SeeCompression.GZIP. -
BZIP2
Deprecated.SeeCompression.BZIP2. -
ZSTD
Deprecated.SeeCompression.ZSTD. -
LZO
Deprecated.SeeCompression.LZO. -
LZOP
Deprecated.SeeCompression.LZOP. -
DEFLATE
Deprecated.SeeCompression.DEFLATE. -
SNAPPY
Deprecated.SeeCompression.SNAPPY.
-
-
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.Description copied from interface:FileBasedSink.OutputFileHintsReturns an optional filename suffix, eg, ".gz" is returned forCompression.GZIP.- Specified by:
getSuggestedFilenameSuffixin interfaceFileBasedSink.OutputFileHints
-
getMimeType
Deprecated.Description copied from interface:FileBasedSink.OutputFileHintsReturns the MIME type that should be used for the files that will hold the output data. May returnnullif thisWritableByteChannelFactorydoes not meaningfully change the MIME type (e.g., forCompression.UNCOMPRESSED).- Specified by:
getMimeTypein interfaceFileBasedSink.OutputFileHints- See Also:
-
create
Deprecated.Description copied from interface:FileBasedSink.WritableByteChannelFactoryReturns theWritableByteChannelto be used during output.- Specified by:
createin interfaceFileBasedSink.WritableByteChannelFactory- Parameters:
channel- theWritableByteChannelto wrap- Throws:
IOException
-
fromCanonical
Deprecated.
-
Compression.