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.
|
LZO
Deprecated.
|
LZOP
Deprecated.
|
UNCOMPRESSED
Deprecated.
|
ZSTD
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.
|
@Nullable 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.UNCOMPRESSEDpublic static final FileBasedSink.CompressionType GZIP
Compression.GZIPpublic static final FileBasedSink.CompressionType BZIP2
Compression.BZIP2public static final FileBasedSink.CompressionType ZSTD
Compression.ZSTDpublic static final FileBasedSink.CompressionType LZO
Compression.LZOpublic static final FileBasedSink.CompressionType LZOP
Compression.LZOPpublic static final FileBasedSink.CompressionType DEFLATE
Compression.DEFLATEpublic 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.OutputFileHintsCompression.GZIPpublic @Nullable java.lang.String getMimeType()
FileBasedSink.OutputFileHintsnull if this WritableByteChannelFactory does not meaningfully change
the MIME type (e.g., for Compression.UNCOMPRESSED).getMimeType in interface FileBasedSink.OutputFileHintsMimeTypes,
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.WritableByteChannelFactorychannel - the WritableByteChannel to wrapWritableByteChannel to be used during outputjava.io.IOExceptionpublic static FileBasedSink.CompressionType fromCanonical(Compression canonical)