public class CreateTableRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateTableRequest() |
CreateTableRequest(CreateTableRequest 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 |
---|---|
Column[] |
getColumns()
Get Column information of the table
|
String |
getDbName()
Get The database where the table is located; if it does not exist, create one.
|
Distribution |
getDistribution()
Get Bucket information
|
IndexInfo[] |
getIndexInfos()
Get Index information.
|
String |
getInstanceId()
Get Resource ID, which is the TCHouse-D resource ID used for table creation.
|
String |
getKeysType()
Get Table data model:
AGG_KEY: aggregation model;
UNI_KEY: primary key model;
DUP_KEY: detail model
|
Partition |
getPartition()
Get Partition information
|
String |
getPassWord()
Get Password corresponding to the user.
|
Property[] |
getProperties()
Get Table attribute
|
String |
getTableComment()
Get Table description
|
String |
getTableName()
Get Name of the table to be created
|
String |
getUserName()
Get Use the user who has corresponding permissions for operations.
|
void |
setColumns(Column[] Columns)
Set Column information of the table
|
void |
setDbName(String DbName)
Set The database where the table is located; if it does not exist, create one.
|
void |
setDistribution(Distribution Distribution)
Set Bucket information
|
void |
setIndexInfos(IndexInfo[] IndexInfos)
Set Index information.
|
void |
setInstanceId(String InstanceId)
Set Resource ID, which is the TCHouse-D resource ID used for table creation.
|
void |
setKeysType(String KeysType)
Set Table data model:
AGG_KEY: aggregation model;
UNI_KEY: primary key model;
DUP_KEY: detail model
|
void |
setPartition(Partition Partition)
Set Partition information
|
void |
setPassWord(String PassWord)
Set Password corresponding to the user.
|
void |
setProperties(Property[] Properties)
Set Table attribute
|
void |
setTableComment(String TableComment)
Set Table description
|
void |
setTableName(String TableName)
Set Name of the table to be created
|
void |
setUserName(String UserName)
Set Use the user who has corresponding permissions for operations.
|
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 CreateTableRequest()
public CreateTableRequest(CreateTableRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Resource ID, which is the TCHouse-D resource ID used for table creation.public String getDbName()
public void setDbName(String DbName)
DbName
- The database where the table is located; if it does not exist, create one.public String getTableName()
public void setTableName(String TableName)
TableName
- Name of the table to be createdpublic String getKeysType()
public void setKeysType(String KeysType)
KeysType
- Table data model:
AGG_KEY: aggregation model;
UNI_KEY: primary key model;
DUP_KEY: detail modelpublic Column[] getColumns()
public void setColumns(Column[] Columns)
Columns
- Column information of the tablepublic Distribution getDistribution()
public void setDistribution(Distribution Distribution)
Distribution
- Bucket informationpublic String getUserName()
public void setUserName(String UserName)
UserName
- Use the user who has corresponding permissions for operations. If the TCHouse-D cluster uses a kernel account registered by a CAM user, you do not need to fill it in.public String getPassWord()
public void setPassWord(String PassWord)
PassWord
- Password corresponding to the user. If the TCHouse-D cluster uses a kernel account registered by a CAM user, you do not need to fill it in.public IndexInfo[] getIndexInfos()
public void setIndexInfos(IndexInfo[] IndexInfos)
IndexInfos
- Index information. The inverted index and N-Gram index can be configured through this parameter. The Prefix index is related to the sort key and key column, and do not require additional configuration. Configure bloom_filter_columns in the table attribute when BloomFilter index is required.public Partition getPartition()
public void setPartition(Partition Partition)
Partition
- Partition informationpublic String getTableComment()
public void setTableComment(String TableComment)
TableComment
- Table descriptionpublic Property[] getProperties()
public void setProperties(Property[] Properties)
Properties
- Table attributeCopyright © 2024. All rights reserved.