Package com.clickhouse.client
Enum ClickHouseFormat
- java.lang.Object
-
- java.lang.Enum<ClickHouseFormat>
-
- com.clickhouse.client.ClickHouseFormat
-
- All Implemented Interfaces:
Serializable,Comparable<ClickHouseFormat>
public enum ClickHouseFormat extends Enum<ClickHouseFormat>
All formats supported by ClickHouse. More information at: https://clickhouse.com/docs/en/interfaces/formats/.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClickHouseFormatdefaultInputFormat()Gets default input format, which usually does not has header.static ClickHouseFormatfromFileName(String file)Gets format based on given file name.booleanhasHeader()Checks if the format contains header like names and/or types.booleanisBinary()Checks if the format is binary-based or not.booleanisRowBased()Check whether the format is row based(e.g.booleanisText()Checks if the format is text-based or not.booleansupportsInput()Checks if the format can be used for input.booleansupportsOutput()Checks if the format can be used for output.static ClickHouseFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static ClickHouseFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RowBinary
public static final ClickHouseFormat RowBinary
-
RowBinaryWithNames
public static final ClickHouseFormat RowBinaryWithNames
-
RowBinaryWithNamesAndTypes
public static final ClickHouseFormat RowBinaryWithNamesAndTypes
-
TabSeparated
public static final ClickHouseFormat TabSeparated
-
TabSeparatedRaw
public static final ClickHouseFormat TabSeparatedRaw
-
TabSeparatedRawWithNames
public static final ClickHouseFormat TabSeparatedRawWithNames
-
TabSeparatedRawWithNamesAndTypes
public static final ClickHouseFormat TabSeparatedRawWithNamesAndTypes
-
TabSeparatedWithNames
public static final ClickHouseFormat TabSeparatedWithNames
-
TabSeparatedWithNamesAndTypes
public static final ClickHouseFormat TabSeparatedWithNamesAndTypes
-
Arrow
public static final ClickHouseFormat Arrow
-
ArrowStream
public static final ClickHouseFormat ArrowStream
-
Avro
public static final ClickHouseFormat Avro
-
AvroConfluent
public static final ClickHouseFormat AvroConfluent
-
CSV
public static final ClickHouseFormat CSV
-
CSVWithNames
public static final ClickHouseFormat CSVWithNames
-
CapnProto
public static final ClickHouseFormat CapnProto
-
CustomSeparated
public static final ClickHouseFormat CustomSeparated
-
CustomSeparatedIgnoreSpaces
public static final ClickHouseFormat CustomSeparatedIgnoreSpaces
-
JSONCompactEachRow
public static final ClickHouseFormat JSONCompactEachRow
-
JSONCompactEachRowWithNames
public static final ClickHouseFormat JSONCompactEachRowWithNames
-
JSONCompactEachRowWithNamesAndTypes
public static final ClickHouseFormat JSONCompactEachRowWithNamesAndTypes
-
JSON
public static final ClickHouseFormat JSON
-
JSONAsObject
public static final ClickHouseFormat JSONAsObject
-
JSONAsString
public static final ClickHouseFormat JSONAsString
-
JSONCompact
public static final ClickHouseFormat JSONCompact
-
JSONCompactStringsEachRow
public static final ClickHouseFormat JSONCompactStringsEachRow
-
JSONCompactStringsEachRowWithNames
public static final ClickHouseFormat JSONCompactStringsEachRowWithNames
-
JSONCompactStringsEachRowWithNamesAndTypes
public static final ClickHouseFormat JSONCompactStringsEachRowWithNamesAndTypes
-
JSONCompactStrings
public static final ClickHouseFormat JSONCompactStrings
-
JSONEachRow
public static final ClickHouseFormat JSONEachRow
-
JSONEachRowWithProgress
public static final ClickHouseFormat JSONEachRowWithProgress
-
JSONLines
public static final ClickHouseFormat JSONLines
-
NDJSON
public static final ClickHouseFormat NDJSON
-
JSONStringsEachRow
public static final ClickHouseFormat JSONStringsEachRow
-
JSONStringsEachRowWithProgress
public static final ClickHouseFormat JSONStringsEachRowWithProgress
-
JSONStringEachRow
public static final ClickHouseFormat JSONStringEachRow
-
JSONStrings
public static final ClickHouseFormat JSONStrings
-
LineAsString
public static final ClickHouseFormat LineAsString
-
LineAsStringWithNames
public static final ClickHouseFormat LineAsStringWithNames
-
LineAsStringWithNamesAndTypes
public static final ClickHouseFormat LineAsStringWithNamesAndTypes
-
Markdown
public static final ClickHouseFormat Markdown
-
MsgPack
public static final ClickHouseFormat MsgPack
-
MySQLDump
public static final ClickHouseFormat MySQLDump
-
MySQLWire
public static final ClickHouseFormat MySQLWire
-
Native
public static final ClickHouseFormat Native
-
Null
public static final ClickHouseFormat Null
-
ODBCDriver2
public static final ClickHouseFormat ODBCDriver2
-
ORC
public static final ClickHouseFormat ORC
-
Parquet
public static final ClickHouseFormat Parquet
-
PostgreSQLWire
public static final ClickHouseFormat PostgreSQLWire
-
Pretty
public static final ClickHouseFormat Pretty
-
PrettyCompact
public static final ClickHouseFormat PrettyCompact
-
PrettyCompactMonoBlock
public static final ClickHouseFormat PrettyCompactMonoBlock
-
PrettyCompactNoEscapes
public static final ClickHouseFormat PrettyCompactNoEscapes
-
PrettyNoEscapes
public static final ClickHouseFormat PrettyNoEscapes
-
PrettySpace
public static final ClickHouseFormat PrettySpace
-
PrettySpaceNoEscapes
public static final ClickHouseFormat PrettySpaceNoEscapes
-
Prometheus
public static final ClickHouseFormat Prometheus
-
Protobuf
public static final ClickHouseFormat Protobuf
-
ProtobufList
public static final ClickHouseFormat ProtobufList
-
ProtobufSingle
public static final ClickHouseFormat ProtobufSingle
-
RawBLOB
public static final ClickHouseFormat RawBLOB
-
Regexp
public static final ClickHouseFormat Regexp
-
TSKV
public static final ClickHouseFormat TSKV
-
TSV
public static final ClickHouseFormat TSV
-
TSVRaw
public static final ClickHouseFormat TSVRaw
-
TSVRawWithNames
public static final ClickHouseFormat TSVRawWithNames
-
TSVRawWithNamesAndTypes
public static final ClickHouseFormat TSVRawWithNamesAndTypes
-
TSVWithNames
public static final ClickHouseFormat TSVWithNames
-
TSVWithNamesAndTypes
public static final ClickHouseFormat TSVWithNamesAndTypes
-
Template
public static final ClickHouseFormat Template
-
TemplateIgnoreSpaces
public static final ClickHouseFormat TemplateIgnoreSpaces
-
Values
public static final ClickHouseFormat Values
-
Vertical
public static final ClickHouseFormat Vertical
-
XML
public static final ClickHouseFormat XML
-
-
Method Detail
-
values
public static ClickHouseFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClickHouseFormat c : ClickHouseFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClickHouseFormat valueOf(String name)
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
-
fromFileName
public static ClickHouseFormat fromFileName(String file)
Gets format based on given file name.- Parameters:
file- file name- Returns:
- format, could be null
-
supportsInput
public boolean supportsInput()
Checks if the format can be used for input.- Returns:
- true if the format can be used for input; false otherwise
-
supportsOutput
public boolean supportsOutput()
Checks if the format can be used for output.- Returns:
- true if the format can be used for output; false otherwise
-
isBinary
public boolean isBinary()
Checks if the format is binary-based or not.- Returns:
- true if the format is binary-based; false otherwise
-
isText
public boolean isText()
Checks if the format is text-based or not.- Returns:
- true if the format is text-based; false otherwise
-
hasHeader
public boolean hasHeader()
Checks if the format contains header like names and/or types.- Returns:
- true if the format contains header; false otherwise
-
isRowBased
public boolean isRowBased()
Check whether the format is row based(e.g. read/write by row), which is a very useful hint on how to process the data.- Returns:
- true if the format is row based; false otherwise(e.g. column, document, or structured-object etc.)
-
defaultInputFormat
public ClickHouseFormat defaultInputFormat()
Gets default input format, which usually does not has header.- Returns:
- non-null input format
-
-