Package org.apache.beam.sdk.io
Enum CompressedSource.CompressionMode
- java.lang.Object
-
- java.lang.Enum<CompressedSource.CompressionMode>
-
- org.apache.beam.sdk.io.CompressedSource.CompressionMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CompressedSource.CompressionMode>
,CompressedSource.DecompressingChannelFactory
- Enclosing class:
- CompressedSource<T>
@Deprecated public static enum CompressedSource.CompressionMode extends java.lang.Enum<CompressedSource.CompressionMode> implements CompressedSource.DecompressingChannelFactory
Deprecated.UseCompression
instead
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.nio.channels.ReadableByteChannel
createDecompressingChannel(java.nio.channels.ReadableByteChannel channel)
Deprecated.Given a channel, create a channel that decompresses the content read from the channel.static boolean
isCompressed(java.lang.String filename)
Deprecated.Returns whether the file's extension matches of one of the known compression formats.boolean
matches(java.lang.String fileName)
Deprecated.Returnstrue
if the given file name implies that the contents are compressed according to the compression embodied by this factory.static CompressedSource.CompressionMode
valueOf(java.lang.String name)
Deprecated.Returns the enum constant of this type with the specified name.static CompressedSource.CompressionMode[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNCOMPRESSED
public static final CompressedSource.CompressionMode UNCOMPRESSED
Deprecated.- See Also:
Compression.UNCOMPRESSED
-
AUTO
public static final CompressedSource.CompressionMode AUTO
Deprecated.- See Also:
Compression.AUTO
-
GZIP
public static final CompressedSource.CompressionMode GZIP
Deprecated.- See Also:
Compression.GZIP
-
BZIP2
public static final CompressedSource.CompressionMode BZIP2
Deprecated.- See Also:
Compression.BZIP2
-
ZIP
public static final CompressedSource.CompressionMode ZIP
Deprecated.- See Also:
Compression.ZIP
-
ZSTD
public static final CompressedSource.CompressionMode ZSTD
Deprecated.- See Also:
Compression.ZSTD
-
LZO
public static final CompressedSource.CompressionMode LZO
Deprecated.- See Also:
Compression.LZO
-
LZOP
public static final CompressedSource.CompressionMode LZOP
Deprecated.- See Also:
Compression.LZOP
-
DEFLATE
public static final CompressedSource.CompressionMode DEFLATE
Deprecated.- See Also:
Compression.DEFLATE
-
SNAPPY
public static final CompressedSource.CompressionMode SNAPPY
Deprecated.- See Also:
Compression.SNAPPY
-
-
Method Detail
-
values
public static CompressedSource.CompressionMode[] values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CompressedSource.CompressionMode c : CompressedSource.CompressionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompressedSource.CompressionMode valueOf(java.lang.String name)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
matches
public boolean matches(java.lang.String fileName)
Deprecated.Returnstrue
if the given file name implies that the contents are compressed according to the compression embodied by this factory.
-
createDecompressingChannel
public java.nio.channels.ReadableByteChannel createDecompressingChannel(java.nio.channels.ReadableByteChannel channel) throws java.io.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:
java.io.IOException
-
isCompressed
public static boolean isCompressed(java.lang.String filename)
Deprecated.Returns whether the file's extension matches of one of the known compression formats.
-
-