Compression
.@Deprecated public static enum FileBasedSink.CompressionType extends java.lang.Enum<FileBasedSink.CompressionType> implements FileBasedSink.WritableByteChannelFactory
Enum Constant and Description |
---|
BZIP2
Deprecated.
|
DEFLATE
Deprecated.
|
GZIP
Deprecated.
|
UNCOMPRESSED
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.nio.channels.WritableByteChannel |
create(java.nio.channels.WritableByteChannel channel)
Deprecated.
|
static FileBasedSink.CompressionType |
fromCanonical(Compression canonical)
Deprecated.
|
java.lang.String |
getMimeType()
Deprecated.
Returns the MIME type that should be used for the files that will hold the output data.
|
java.lang.String |
getSuggestedFilenameSuffix()
Deprecated.
|
static FileBasedSink.CompressionType |
valueOf(java.lang.String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static FileBasedSink.CompressionType[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileBasedSink.CompressionType UNCOMPRESSED
Compression.UNCOMPRESSED
public static final FileBasedSink.CompressionType GZIP
Compression.GZIP
public static final FileBasedSink.CompressionType BZIP2
Compression.BZIP2
public static final FileBasedSink.CompressionType DEFLATE
Compression.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 getSuggestedFilenameSuffix()
getSuggestedFilenameSuffix
in interface FileBasedSink.OutputFileHints
Compression.GZIP
@Nullable public java.lang.String getMimeType()
FileBasedSink.OutputFileHints
null
if this WritableByteChannelFactory
does not meaningfully change
the MIME type (e.g., for Compression.UNCOMPRESSED
).getMimeType
in interface FileBasedSink.OutputFileHints
MimeTypes
,
http://www.iana.org/assignments/media-types/media-types.xhtmlpublic java.nio.channels.WritableByteChannel create(java.nio.channels.WritableByteChannel channel) throws java.io.IOException
create
in interface FileBasedSink.WritableByteChannelFactory
channel
- the WritableByteChannel
to wrapWritableByteChannel
to be used during outputjava.io.IOException
public static FileBasedSink.CompressionType fromCanonical(Compression canonical)