Package com.clickhouse.data
Enum ClickHouseCompression
- All Implemented Interfaces:
Serializable,Comparable<ClickHouseCompression>,java.lang.constant.Constable
Supported compression algoritms.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionencoding()fileExtension(boolean withDot) static ClickHouseCompressionfromEncoding(String encoding) Get compression algorithm based on given encoding.static ClickHouseCompressionfromFileName(String file) Get compression algorithm based on given file name.static ClickHouseCompressionfromMimeType(String mimeType) Get compression algorithm based on given MIME type.mimeType()static ClickHouseCompressionReturns the enum constant of this type with the specified name.static ClickHouseCompression[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NONE
-
BROTLI
-
BZ2
-
DEFLATE
-
GZIP
-
LZ4
-
SNAPPY
-
XZ
-
ZSTD
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
mimeType
-
encoding
-
fileExtension
-
fileExtension
-
fromMimeType
Get compression algorithm based on given MIME type.- Parameters:
mimeType- MIME type- Returns:
- compression algorithm
-
fromEncoding
Get compression algorithm based on given encoding.- Parameters:
encoding- content encoding- Returns:
- compression algorithm
-
fromFileName
Get compression algorithm based on given file name.- Parameters:
file- file name- Returns:
- compression algorithm, could be null
-