Package com.clickhouse.data
Enum ClickHouseFormat
- All Implemented Interfaces:
Serializable,Comparable<ClickHouseFormat>,java.lang.constant.Constable
All formats supported by ClickHouse. More information at:
https://clickhouse.com/docs/en/interfaces/formats/.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionGets default input format, which usually does not has header.static ClickHouseFormatfromFileName(String file) Gets format based on given file name.booleanChecks if the format contains header like names and/or types.booleanisBinary()Checks if the format is binary-based or not.booleanCheck whether the format is row based(e.g.booleanisText()Checks if the format is text-based or not.booleanChecks if the format can be used for input.booleanChecks if the format can be used for output.static ClickHouseFormatReturns 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 Details
-
RowBinary
-
RowBinaryWithNames
-
RowBinaryWithNamesAndTypes
-
RowBinaryWithDefaults
-
TabSeparated
-
TabSeparatedRaw
-
TabSeparatedRawWithNames
-
TabSeparatedRawWithNamesAndTypes
-
TabSeparatedWithNames
-
TabSeparatedWithNamesAndTypes
-
Arrow
-
ArrowStream
-
Avro
-
AvroConfluent
-
CSV
-
CSVWithNames
-
CSVWithNamesAndTypes
-
CapnProto
-
CustomSeparated
-
CustomSeparatedWithNames
-
CustomSeparatedWithNamesAndTypes
-
CustomSeparatedIgnoreSpaces
-
CustomSeparatedIgnoreSpacesWithNames
-
CustomSeparatedIgnoreSpacesWithNamesAndTypes
-
HiveText
-
JSONCompactEachRow
-
JSONCompactEachRowWithNames
-
JSONCompactEachRowWithNamesAndTypes
-
JSON
-
JSONAsObject
-
JSONAsString
-
JSONColumns
-
JSONColumnsWithMetadata
-
JSONCompact
-
JSONCompactColumns
-
JSONCompactStringsEachRow
-
JSONCompactStringsEachRowWithNames
-
JSONCompactStringsEachRowWithNamesAndTypes
-
JSONCompactStrings
-
JSONEachRow
-
JSONEachRowWithProgress
-
JSONLines
-
NDJSON
-
JSONObjectEachRow
-
JSONStringsEachRow
-
JSONStringsEachRowWithProgress
-
JSONStringEachRow
-
JSONStrings
-
LineAsString
-
LineAsStringWithNames
-
LineAsStringWithNamesAndTypes
-
Markdown
-
MsgPack
-
MySQLDump
-
MySQLWire
-
Native
-
Null
-
ODBCDriver2
-
ORC
-
Parquet
-
PostgreSQLWire
-
Pretty
-
PrettyCompact
-
PrettyCompactMonoBlock
-
PrettyCompactNoEscapes
-
PrettyMonoBlock
-
PrettyNoEscapes
-
PrettyNoEscapesMonoBlock
-
PrettySpace
-
PrettySpaceMonoBlock
-
PrettySpaceNoEscapes
-
PrettySpaceNoEscapesMonoBlock
-
Prometheus
-
Protobuf
-
ProtobufList
-
ProtobufSingle
-
RawBLOB
-
Regexp
-
SQLInsert
-
TSKV
-
TSV
-
TSVRaw
-
TSVRawWithNames
-
TSVRawWithNamesAndTypes
-
TSVWithNames
-
TSVWithNamesAndTypes
-
Template
-
TemplateIgnoreSpaces
-
Values
-
Vertical
-
XML
-
-
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
-
fromFileName
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
Gets default input format, which usually does not has header.- Returns:
- non-null input format
-