public abstract static class TableSchema.ColumnType
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static TableSchema.ColumnType |
DATE |
static TableSchema.ColumnType |
DATETIME |
static TableSchema.ColumnType |
FLOAT32 |
static TableSchema.ColumnType |
FLOAT64 |
static TableSchema.ColumnType |
INT16 |
static TableSchema.ColumnType |
INT32 |
static TableSchema.ColumnType |
INT64 |
static TableSchema.ColumnType |
INT8 |
static TableSchema.ColumnType |
STRING |
static TableSchema.ColumnType |
UINT16 |
static TableSchema.ColumnType |
UINT32 |
static TableSchema.ColumnType |
UINT64 |
static TableSchema.ColumnType |
UINT8 |
Constructor and Description |
---|
ColumnType() |
Modifier and Type | Method and Description |
---|---|
static TableSchema.ColumnType |
array(TableSchema.ColumnType arrayElementType) |
abstract @Nullable TableSchema.ColumnType |
arrayElementType() |
static org.apache.beam.sdk.io.clickhouse.TableSchema.ColumnType.Builder |
builder() |
static TableSchema.ColumnType |
enum16(java.util.Map<java.lang.String,java.lang.Integer> enumValues) |
static TableSchema.ColumnType |
enum8(java.util.Map<java.lang.String,java.lang.Integer> enumValues) |
abstract @Nullable java.util.Map<java.lang.String,java.lang.Integer> |
enumValues() |
static TableSchema.ColumnType |
fixedString(int size) |
abstract @Nullable java.lang.Integer |
fixedStringSize() |
abstract boolean |
nullable() |
static TableSchema.ColumnType |
nullable(TableSchema.TypeName typeName) |
static TableSchema.ColumnType |
of(TableSchema.TypeName typeName) |
static TableSchema.ColumnType |
parse(java.lang.String str)
Parse string with ClickHouse type to
TableSchema.ColumnType . |
static java.lang.Object |
parseDefaultExpression(TableSchema.ColumnType columnType,
java.lang.String str)
Get default value of a column based on expression.
|
abstract TableSchema.TypeName |
typeName() |
TableSchema.ColumnType |
withNullable(boolean nullable) |
public static final TableSchema.ColumnType DATE
public static final TableSchema.ColumnType DATETIME
public static final TableSchema.ColumnType FLOAT32
public static final TableSchema.ColumnType FLOAT64
public static final TableSchema.ColumnType INT8
public static final TableSchema.ColumnType INT16
public static final TableSchema.ColumnType INT32
public static final TableSchema.ColumnType INT64
public static final TableSchema.ColumnType STRING
public static final TableSchema.ColumnType UINT8
public static final TableSchema.ColumnType UINT16
public static final TableSchema.ColumnType UINT32
public static final TableSchema.ColumnType UINT64
public abstract boolean nullable()
public abstract TableSchema.TypeName typeName()
public abstract @Nullable java.util.Map<java.lang.String,java.lang.Integer> enumValues()
public abstract @Nullable java.lang.Integer fixedStringSize()
public abstract @Nullable TableSchema.ColumnType arrayElementType()
public TableSchema.ColumnType withNullable(boolean nullable)
public static TableSchema.ColumnType of(TableSchema.TypeName typeName)
public static TableSchema.ColumnType nullable(TableSchema.TypeName typeName)
public static TableSchema.ColumnType fixedString(int size)
public static TableSchema.ColumnType enum8(java.util.Map<java.lang.String,java.lang.Integer> enumValues)
public static TableSchema.ColumnType enum16(java.util.Map<java.lang.String,java.lang.Integer> enumValues)
public static TableSchema.ColumnType array(TableSchema.ColumnType arrayElementType)
public static TableSchema.ColumnType parse(java.lang.String str)
TableSchema.ColumnType
.str
- string representation of ClickHouse typepublic static java.lang.Object parseDefaultExpression(TableSchema.ColumnType columnType, java.lang.String str)
E.g., "CREATE TABLE hits(id Int32, count Int32 DEFAULT <str>)"
columnType
- type of ClickHouse expressionstr
- ClickHouse expressionpublic static org.apache.beam.sdk.io.clickhouse.TableSchema.ColumnType.Builder builder()