Package | Description |
---|---|
com.huawei.dli.sdk.common | |
com.huawei.dli.sdk.common.type |
Modifier and Type | Class and Description |
---|---|
class |
AbstractPrimitiveTypeInfo |
class |
DecimalTypeInfo |
class |
SimplePrimitiveTypeInfo |
Modifier and Type | Method and Description |
---|---|
DataTypeInfo |
Column.getDataTypeInfo() |
static DataTypeInfo |
DataType.getDataTypeInfo(DataType dataType,
String paramStr) |
Constructor and Description |
---|
Column(String columnName,
DataTypeInfo dataTypeInfo)
Create Column instance,don't need description.
|
Column(String columnName,
DataTypeInfo dataTypeInfo,
String description)
Create Column instance,
Constructor parameters:column name, dataTypeInfo, description.
|
Column(String columnName,
DataTypeInfo dataTypeInfo,
String description,
boolean isPartitionColumn)
Create Column instance,
Constructor parameters:column name, dataTypeInfo, description, isPartitionColumn.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ArrayTypeInfo |
interface |
MapTypeInfo |
interface |
StructTypeInfo |
Modifier and Type | Class and Description |
---|---|
class |
SimpleArrayTypeInfo |
class |
SimpleMapTypeInfo |
class |
SimpleStructTypeInfo |
Modifier and Type | Field and Description |
---|---|
static DataTypeInfo |
TypeInfoUtils.BIGINT |
static DataTypeInfo |
TypeInfoUtils.BOOLEAN |
static DataTypeInfo |
TypeInfoUtils.DATE |
static DataTypeInfo |
TypeInfoUtils.DOUBLE |
static DataTypeInfo |
TypeInfoUtils.FLOAT |
static DataTypeInfo |
TypeInfoUtils.INT |
static DataTypeInfo |
TypeInfoUtils.LONG |
static DataTypeInfo |
TypeInfoUtils.SHORT |
static DataTypeInfo |
TypeInfoUtils.SMALLINT |
static DataTypeInfo |
TypeInfoUtils.STRING |
static DataTypeInfo |
TypeInfoUtils.TIMESTAMP |
static DataTypeInfo |
TypeInfoUtils.TINYINT |
Modifier and Type | Method and Description |
---|---|
static DataTypeInfo |
TypeInfoUtils.getDataTypeInfo(String typeString)
Get the data type info form a type string, e.g decimal(10, 0), struct<age:int, name:string>
|
DataTypeInfo |
SimpleArrayTypeInfo.getElementTypeInfo() |
DataTypeInfo |
DliArray.getElementTypeInfo()
Get the data type info of the element in the Array.
|
DataTypeInfo |
SimpleArray.getElementTypeInfo() |
DataTypeInfo |
ArrayTypeInfo.getElementTypeInfo()
Get the data type info of the element in the Array type.
|
DataTypeInfo |
DliStruct.getFieldTypeInfo(int index)
Get the field type info by the index of the struct
|
DataTypeInfo |
SimpleStruct.getFieldTypeInfo(int index) |
DataTypeInfo |
DliStruct.getFieldTypeInfo(String fieldName)
Get the field type info the field name of the struct
|
DataTypeInfo |
SimpleStruct.getFieldTypeInfo(String fieldName) |
DataTypeInfo |
MapTypeInfo.getKeyTypeInfo()
get the key type info of the Map
|
DataTypeInfo |
SimpleMap.getKeyTypeInfo() |
DataTypeInfo |
SimpleMapTypeInfo.getKeyTypeInfo() |
DataTypeInfo |
DliMap.getKeyTypeInfo()
Get the Type info of the key in the Map
|
static DataTypeInfo |
TypeInfoUtils.getPrimitiveTypeInfo(DataType dataType)
Get the data type info of a Primitive Type.
|
static DataTypeInfo |
TypeInfoParser.getTypeInfoFromTypeString(String name) |
DataTypeInfo |
MapTypeInfo.getValueTypeInfo()
get the value type info of the Map
|
DataTypeInfo |
SimpleMap.getValueTypeInfo() |
DataTypeInfo |
SimpleMapTypeInfo.getValueTypeInfo() |
DataTypeInfo |
DliMap.getValueTypeInfo()
Get the Type info of the value in the Map
|
Modifier and Type | Method and Description |
---|---|
List<DataTypeInfo> |
StructTypeInfo.getFieldTypeInfos()
Get the list of the field type infos of the Struct type info
|
List<DataTypeInfo> |
SimpleStructTypeInfo.getFieldTypeInfos() |
Modifier and Type | Method and Description |
---|---|
static ArrayTypeInfo |
TypeInfoUtils.getArrayTypeInfo(DataTypeInfo elementTypeInfo)
Get the data type info of a Array Type.
|
static MapTypeInfo |
TypeInfoUtils.getMapTypeInfo(DataTypeInfo keyTypeInfo,
DataTypeInfo valueTypeInfo)
Get the data type info of a Map Type.
|
static Object |
TypeUtils.transform(String data,
DataTypeInfo valueTypeInfo)
Transform the data value from string to real data type in java
|
Modifier and Type | Method and Description |
---|---|
static StructTypeInfo |
TypeInfoUtils.getStructTypeInfo(List<String> fieldNames,
List<DataTypeInfo> fieldTypeInfos)
Get the data type info of a Struct Type.
|
Copyright © 2023. All rights reserved.