public class DataTypes extends Object
Modifier and Type | Field and Description |
---|---|
static DataType |
ASCII |
static DataType |
BIGINT |
static DataType |
BLOB |
static DataType |
BOOLEAN |
static DataType |
COUNTER |
static DataType |
DATE |
static DataType |
DECIMAL |
static DataType |
DOUBLE |
static DataType |
DURATION |
static DataType |
FLOAT |
static DataType |
INET |
static DataType |
INT |
static DataType |
SMALLINT |
static DataType |
TEXT |
static DataType |
TIME |
static DataType |
TIMESTAMP |
static DataType |
TIMEUUID |
static DataType |
TINYINT |
static DataType |
UUID |
static DataType |
VARINT |
Constructor and Description |
---|
DataTypes() |
Modifier and Type | Method and Description |
---|---|
static DataType |
custom(String className) |
static ListType |
frozenListOf(DataType elementType) |
static MapType |
frozenMapOf(DataType keyType,
DataType valueType) |
static SetType |
frozenSetOf(DataType elementType) |
static ListType |
listOf(DataType elementType) |
static ListType |
listOf(DataType elementType,
boolean frozen) |
static MapType |
mapOf(DataType keyType,
DataType valueType) |
static MapType |
mapOf(DataType keyType,
DataType valueType,
boolean frozen) |
static SetType |
setOf(DataType elementType) |
static SetType |
setOf(DataType elementType,
boolean frozen) |
static TupleType |
tupleOf(DataType... componentTypes)
Builds a new, detached tuple type.
|
public static final DataType ASCII
public static final DataType BIGINT
public static final DataType BLOB
public static final DataType BOOLEAN
public static final DataType COUNTER
public static final DataType DECIMAL
public static final DataType DOUBLE
public static final DataType FLOAT
public static final DataType INT
public static final DataType TIMESTAMP
public static final DataType UUID
public static final DataType VARINT
public static final DataType TIMEUUID
public static final DataType INET
public static final DataType DATE
public static final DataType TEXT
public static final DataType TIME
public static final DataType SMALLINT
public static final DataType TINYINT
public static final DataType DURATION
@NonNull public static MapType mapOf(@NonNull DataType keyType, @NonNull DataType valueType, boolean frozen)
@NonNull public static MapType frozenMapOf(@NonNull DataType keyType, @NonNull DataType valueType)
@NonNull public static TupleType tupleOf(@NonNull DataType... componentTypes)
componentTypes
- neither the individual types, nor the vararg array itself, can be null
.Detachable
Copyright © 2017–2024. All rights reserved.