public static enum TFRecordIO.CompressionType extends java.lang.Enum<TFRecordIO.CompressionType>
Enum Constant and Description |
---|
AUTO
Automatically determine the compression type based on filename extension.
|
GZIP
GZipped.
|
NONE
Uncompressed.
|
ZLIB
ZLIB compressed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.String filename)
Determine if a given filename matches a compression type based on its extension.
|
static TFRecordIO.CompressionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TFRecordIO.CompressionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TFRecordIO.CompressionType AUTO
public static final TFRecordIO.CompressionType NONE
public static final TFRecordIO.CompressionType GZIP
public static final TFRecordIO.CompressionType ZLIB
public static TFRecordIO.CompressionType[] values()
for (TFRecordIO.CompressionType c : TFRecordIO.CompressionType.values()) System.out.println(c);
public static TFRecordIO.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 boolean matches(java.lang.String filename)
filename
- the filename to match