public class Column extends AbstractModel
header, skipSign
Constructor and Description |
---|
Column() |
Column(Column source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getAggType()
Get Aggregation type: When the table is an aggregation model (AGG_KEY), the column with the aggregation type is set as the metric column, and other columns are dimension columns.
|
Boolean |
getAutoInc()
Get Whether it is an auto-increment column.
|
String |
getComment()
Get Column description
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getDefaultValue()
Get Column's default value
Note: This field may return null, indicating that no valid values can be obtained.
|
Boolean |
getIsDistribution()
Get Whether it is a bucket column.
|
Boolean |
getIsKey()
Get Whether it is a Key column.
|
Boolean |
getIsNull()
Get Whether the column value is allowed to be Null
Note: This field may return null, indicating that no valid values can be obtained.
|
Boolean |
getIsPartition()
Get Whether it is a partition column.
|
String |
getName()
Get Column name
Note: This field may return null, indicating that no valid values can be obtained.
|
String |
getType()
Get Column type
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setAggType(String AggType)
Set Aggregation type: When the table is an aggregation model (AGG_KEY), the column with the aggregation type is set as the metric column, and other columns are dimension columns.
|
void |
setAutoInc(Boolean AutoInc)
Set Whether it is an auto-increment column.
|
void |
setComment(String Comment)
Set Column description
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setDefaultValue(String DefaultValue)
Set Column's default value
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setIsDistribution(Boolean IsDistribution)
Set Whether it is a bucket column.
|
void |
setIsKey(Boolean IsKey)
Set Whether it is a Key column.
|
void |
setIsNull(Boolean IsNull)
Set Whether the column value is allowed to be Null
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setIsPartition(Boolean IsPartition)
Set Whether it is a partition column.
|
void |
setName(String Name)
Set Column name
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setType(String Type)
Set Column type
Note: This field may return null, indicating that no valid values can be obtained.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public Column()
public Column(Column source)
public String getName()
public void setName(String Name)
Name
- Column name
Note: This field may return null, indicating that no valid values can be obtained.public String getType()
public void setType(String Type)
Type
- Column type
Note: This field may return null, indicating that no valid values can be obtained.public String getAggType()
public void setAggType(String AggType)
AggType
- Aggregation type: When the table is an aggregation model (AGG_KEY), the column with the aggregation type is set as the metric column, and other columns are dimension columns. Aggregation type: ●SUM: sum; the values of multiple rows are accumulated. ●REPLACE: replacement; the values in the next batch of data will replace the values in the previously imported rows. ●MAX: retain the maximum value.
●MIN: retain the minimum value. ●REPLACE_IF_NOT_NULL: non-null values replacement. The difference from REPLACE is that null values are not replaced. ●HLL_UNION: aggregation method for HLL type columns, which is aggregated by HyperLogLog algorithm. ●BITMAP_UNION: aggregation method for BIMTAP type columns; bitmap union aggregation.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getIsNull()
public void setIsNull(Boolean IsNull)
IsNull
- Whether the column value is allowed to be Null
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getIsKey()
public void setIsKey(Boolean IsKey)
IsKey
- Whether it is a Key column. The meaning of different data models:
●DUP_KEY: The column specified afterwards is the sorting column.
●AGG_KEY: The column specified afterwards is the dimension column.
●UNI_KEY: The column specified afterward is the primary key column.
Note: This field may return null, indicating that no valid values can be obtained.public String getDefaultValue()
public void setDefaultValue(String DefaultValue)
DefaultValue
- Column's default value
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getIsPartition()
public void setIsPartition(Boolean IsPartition)
IsPartition
- Whether it is a partition column. The partition column must be a Key column.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getIsDistribution()
public void setIsDistribution(Boolean IsDistribution)
IsDistribution
- Whether it is a bucket column. The bucket column of the aggregation model and primary key model must be Key columns, while the bucket column of the detail model can be any column.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getAutoInc()
public void setAutoInc(Boolean AutoInc)
AutoInc
- Whether it is an auto-increment column. Supported by TCHouse-D 2.1 version and later.
Limit:
1. Only DUP_KEY and UNI_KEY model tables can contain auto-increment columns.
2. A table can contain at most one auto-increment column.
3. The type of the auto-increment column must be BIGINT type and cannot be null.
Note: This field may return null, indicating that no valid values can be obtained.public String getComment()
public void setComment(String Comment)
Comment
- Column description
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2024. All rights reserved.