Class TableSchema.ColumnType
java.lang.Object
org.apache.beam.sdk.io.clickhouse.TableSchema.ColumnType
- All Implemented Interfaces:
Serializable
- Enclosing class:
TableSchema
A descriptor for a column type.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TableSchema.ColumnType
static final TableSchema.ColumnType
static final TableSchema.ColumnType
static final TableSchema.ColumnType
static final TableSchema.ColumnType
static final TableSchema.ColumnType
static final TableSchema.ColumnType
static final TableSchema.ColumnType
static final TableSchema.ColumnType
static final TableSchema.ColumnType
static final TableSchema.ColumnType
static final TableSchema.ColumnType
static final TableSchema.ColumnType
static final TableSchema.ColumnType
static final TableSchema.ColumnType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TableSchema.ColumnType
array
(TableSchema.ColumnType arrayElementType) abstract @Nullable TableSchema.ColumnType
static org.apache.beam.sdk.io.clickhouse.TableSchema.ColumnType.Builder
builder()
static TableSchema.ColumnType
static TableSchema.ColumnType
static TableSchema.ColumnType
fixedString
(int size) abstract boolean
nullable()
static TableSchema.ColumnType
nullable
(TableSchema.TypeName typeName) static TableSchema.ColumnType
of
(TableSchema.TypeName typeName) static TableSchema.ColumnType
Parse string with ClickHouse type toTableSchema.ColumnType
.static Object
parseDefaultExpression
(TableSchema.ColumnType columnType, String value) Get default value of a column based on expression.static TableSchema.ColumnType
tuple
(Map<String, TableSchema.ColumnType> elements) abstract @Nullable Map
<String, TableSchema.ColumnType> abstract TableSchema.TypeName
typeName()
withNullable
(boolean nullable)
-
Field Details
-
DATE
-
DATETIME
-
FLOAT32
-
FLOAT64
-
INT8
-
INT16
-
INT32
-
INT64
-
STRING
-
UINT8
-
UINT16
-
UINT32
-
UINT64
-
BOOL
-
TUPLE
-
-
Constructor Details
-
ColumnType
public ColumnType()
-
-
Method Details
-
nullable
public abstract boolean nullable() -
typeName
-
enumValues
-
fixedStringSize
-
arrayElementType
-
tupleTypes
-
withNullable
-
of
-
nullable
-
fixedString
-
enum8
-
enum16
-
array
-
tuple
-
parse
Parse string with ClickHouse type toTableSchema.ColumnType
.- Parameters:
str
- string representation of ClickHouse type- Returns:
- type of ClickHouse column
-
parseDefaultExpression
Get default value of a column based on expression.E.g., "CREATE TABLE hits(id Int32, count Int32 DEFAULT <str>)"
- Parameters:
columnType
- type of ClickHouse expressionvalue
- ClickHouse expression- Returns:
- value of ClickHouse expression
-
builder
public static org.apache.beam.sdk.io.clickhouse.TableSchema.ColumnType.Builder builder()
-