| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
RowDecoderV2.decodeCol(byte[] colData,
DataType tp) |
| 限定符和类型 | 字段和说明 |
|---|---|
protected DataType |
TiColumnVector.type
Data type for this column.
|
| 限定符和类型 | 方法和说明 |
|---|---|
DataType |
TiColumnVector.dataType()
Returns the data type of this column vector.
|
| 构造器和说明 |
|---|
TiChunkColumnVector(DataType dataType,
int fixLength,
int numOfRows,
int numOfNulls,
byte[] nullBitMaps,
long[] offsets,
ByteBuffer data) |
TiColumnVector(DataType type,
int numOfRows)
Sets up the data type of this column vector.
|
TiRowColumnVector(DataType type,
int colIdx,
Row[] rows,
int numOfRows)
Sets up the data type of this column vector.
|
| 限定符和类型 | 方法和说明 |
|---|---|
DataType |
CHTypeNumber.toDataType() |
DataType |
CHTypeNumber.CHTypeUInt64.toDataType() |
DataType |
CHTypeDateTime.toDataType() |
DataType |
CHTypeFixedString.toDataType() |
DataType |
CHTypeMyDate.toDataType() |
DataType |
CHTypeDate.toDataType() |
DataType |
CHTypeMyDateTime.toDataType() |
abstract DataType |
CHType.toDataType() |
DataType |
CHTypeDecimal.toDataType() |
DataType |
CHTypeString.toDataType() |
| 限定符和类型 | 字段和说明 |
|---|---|
protected DataType |
Expression.dataType |
| 限定符和类型 | 方法和说明 |
|---|---|
DataType |
ColumnRef.getDataType() |
DataType |
Expression.getDataType() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Constant |
Constant.create(Object value,
DataType type) |
static ColumnRef |
ColumnRef.create(String name,
DataType dataType) |
static ArithmeticBinaryExpression |
ArithmeticBinaryExpression.divide(DataType dataType,
Expression left,
Expression right) |
static ArithmeticBinaryExpression |
ArithmeticBinaryExpression.multiply(DataType dataType,
Expression left,
Expression right) |
static AggregateFunction |
AggregateFunction.newCall(AggregateFunction.FunctionType type,
Expression argument,
DataType dataType) |
void |
Expression.setDataType(DataType dataType) |
void |
Constant.setType(DataType type) |
| 构造器和说明 |
|---|
ArithmeticBinaryExpression(DataType dataType,
ArithmeticBinaryExpression.Type type,
Expression left,
Expression right) |
ColumnRef(String name,
DataType dataType) |
Constant(Object value,
DataType type) |
Expression(DataType dataType) |
| 限定符和类型 | 方法和说明 |
|---|---|
DataType |
TypedKey.getType() |
| 限定符和类型 | 方法和说明 |
|---|---|
static TypedKey |
TypedKey.toTypedKey(Object val,
DataType type) |
static TypedKey |
TypedKey.toTypedKey(Object val,
DataType type,
int prefixLength)
Map a typed value into TypedKey, only encoding first prefixLength bytes
When prefixLength is DataType.UNSPECIFIED_LEN, encode full length of value
|
| 构造器和说明 |
|---|
TypedKey(Object val,
DataType type,
int prefixLength) |
| 限定符和类型 | 方法和说明 |
|---|---|
DataType |
TiColumnInfo.getType() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<DataType> |
TiDAGRequest.getIndexDataTypes() |
| 构造器和说明 |
|---|
TiColumnInfo(long id,
String name,
int offset,
DataType type,
boolean isPrimaryKey) |
TiColumnInfo(long id,
String name,
int offset,
DataType type,
SchemaState schemaState,
String originalDefaultValue,
String defaultValue,
String defaultValueBit,
String comment,
long version,
String generatedExprString) |
| 限定符和类型 | 方法和说明 |
|---|---|
DataType |
SchemaInfer.getType(int index) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<DataType> |
SchemaInfer.getTypes() |
| 限定符和类型 | 字段和说明 |
|---|---|
protected DataType[] |
CoprocessorIterator.handleTypes |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
ObjectRowImpl.get(int pos,
DataType type) |
Object |
Row.get(int pos,
DataType type) |
Row |
DefaultRowReader.readRow(DataType[] dataTypes) |
Row |
RowReader.readRow(DataType[] dataTypes) |
void |
ObjectRowImpl.set(int pos,
DataType type,
Object v) |
void |
Row.set(int pos,
DataType type,
Object v) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractDateTimeType |
class |
BitType |
class |
BytesType
TODO: if we need to unify string type and binary types?
|
class |
DateTimeType
Datetime is a timezone neutral version of timestamp While most of decoding logic is the same it
interpret as local timezone to be able to compute with date/time data
|
class |
DateType |
class |
DecimalType |
class |
EnumType |
class |
IntegerType |
class |
JsonType |
class |
RealType |
class |
SetType |
class |
StringType |
class |
TimestampType
Timestamp in TiDB is represented as packed long including year/month and etc.
|
class |
TimeType |
class |
UninitializedType
UninitializedType is created to deal with MySQLType being 0.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static DataType |
DataTypeFactory.of(MySQLType type) |
static DataType |
DataTypeFactory.of(TiColumnInfo.InternalTypeHolder holder) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
IntegerType.isSameCatalog(DataType other) |
boolean |
DataType.isSameCatalog(DataType other) |
Copyright © 2023 PingCAP. All rights reserved.