public static enum FileBasedSink.CompressionType extends java.lang.Enum<FileBasedSink.CompressionType> implements FileBasedSink.WritableByteChannelFactory
Enum Constant and Description |
---|
BZIP2
Provides BZip2 output transformation.
|
DEFLATE
Provides deflate output transformation.
|
GZIP
Provides GZip output transformation.
|
UNCOMPRESSED
No compression, or any other transformation, will be used.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilenameSuffix() |
java.lang.String |
getMimeType()
Returns the MIME type that should be used for the files that will hold the output data.
|
static FileBasedSink.CompressionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FileBasedSink.CompressionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
create
public static final FileBasedSink.CompressionType UNCOMPRESSED
public static final FileBasedSink.CompressionType GZIP
public static final FileBasedSink.CompressionType BZIP2
public static final FileBasedSink.CompressionType DEFLATE
public static FileBasedSink.CompressionType[] values()
for (FileBasedSink.CompressionType c : FileBasedSink.CompressionType.values()) System.out.println(c);
public static FileBasedSink.CompressionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getFilenameSuffix()
getFilenameSuffix
in interface FileBasedSink.WritableByteChannelFactory
GZIP
@Nullable public java.lang.String getMimeType()
FileBasedSink.WritableByteChannelFactory
null
if this WritableByteChannelFactory
does not meaningfully change
the MIME type (e.g., for UNCOMPRESSED
).getMimeType
in interface FileBasedSink.WritableByteChannelFactory
MimeTypes
,
http://www.iana.org/assignments/media-types/media-types.xhtml