public static enum TextIO.CompressionType extends Enum<TextIO.CompressionType> implements com.google.cloud.dataflow.sdk.runners.worker.FileBasedReader.DecompressingStreamFactory
| Enum Constant and Description |
|---|
AUTO
Automatically determine the compression type based on filename extension.
|
BZIP2
BZipped.
|
GZIP
GZipped.
|
UNCOMPRESSED
Uncompressed (i.e., may be split).
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
createInputStream(InputStream inputStream)
Create a decompressing
InputStream from an existing InputStream. |
boolean |
matches(String filename)
Determine if a given filename matches a compression type based on its extension.
|
static TextIO.CompressionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextIO.CompressionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextIO.CompressionType AUTO
public static final TextIO.CompressionType UNCOMPRESSED
public static final TextIO.CompressionType GZIP
public static final TextIO.CompressionType BZIP2
public static TextIO.CompressionType[] values()
for (TextIO.CompressionType c : TextIO.CompressionType.values()) System.out.println(c);
public static TextIO.CompressionType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean matches(String filename)
filename - the filename to matchpublic InputStream createInputStream(InputStream inputStream) throws IOException
com.google.cloud.dataflow.sdk.runners.worker.FileBasedReader.DecompressingStreamFactoryInputStream from an existing InputStream.createInputStream in interface com.google.cloud.dataflow.sdk.runners.worker.FileBasedReader.DecompressingStreamFactoryinputStream - the existing streamIOException