Package org.apache.beam.sdk.io
Enum Class CompressedSource.CompressionMode
java.lang.Object
java.lang.Enum<CompressedSource.CompressionMode>
org.apache.beam.sdk.io.CompressedSource.CompressionMode
- All Implemented Interfaces:
Serializable
,Comparable<CompressedSource.CompressionMode>
,Constable
,CompressedSource.DecompressingChannelFactory
- Enclosing class:
CompressedSource<T>
@Deprecated
public static enum CompressedSource.CompressionMode
extends Enum<CompressedSource.CompressionMode>
implements CompressedSource.DecompressingChannelFactory
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 TypeMethodDescriptionDeprecated.Given a channel, create a channel that decompresses the content read from the channel.static boolean
isCompressed
(String filename) Deprecated.Returns whether the file's extension matches of one of the known compression formats.boolean
Deprecated.Returnstrue
if the given file name implies that the contents are compressed according to the compression embodied by this factory.Deprecated.Returns the enum constant of this class with the specified name.static CompressedSource.CompressionMode[]
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:
-
AUTO
Deprecated.- See Also:
-
GZIP
Deprecated.- See Also:
-
BZIP2
Deprecated.- See Also:
-
ZIP
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
-
matches
Deprecated.Returnstrue
if the given file name implies that the contents are compressed according to the compression embodied by this factory. -
createDecompressingChannel
public ReadableByteChannel createDecompressingChannel(ReadableByteChannel channel) throws IOException Deprecated.Description copied from interface:CompressedSource.DecompressingChannelFactory
Given a channel, create a channel that decompresses the content read from the channel.- Specified by:
createDecompressingChannel
in interfaceCompressedSource.DecompressingChannelFactory
- Throws:
IOException
-
isCompressed
Deprecated.Returns whether the file's extension matches of one of the known compression formats.
-
Compression
instead