public class TableInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TableInfo.TableInfoBuilder |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LABEL |
static String |
INNER_OUTPUT_LABEL |
| Constructor and Description |
|---|
TableInfo() |
TableInfo(String projectName,
String tblName,
LinkedHashMap<String,String> partSpec,
String[] cols,
String lable)
给定表名和分区构造一个表信息对象
|
TableInfo(TableInfo table) |
| Modifier and Type | Method and Description |
|---|---|
static TableInfo.TableInfoBuilder |
builder() |
boolean |
equals(Object that) |
String[] |
getCols()
获取查询列
|
String |
getLabel()
获取标签
|
Class<?> |
getMapperClass()
获取输入表对应的mapper类
|
PartitionSpec |
getPartitionSpec()
获取分区描述,分区描述是一个PartitionSpec对象.
|
String |
getPartPath()
获取分区路径.
|
LinkedHashMap<String,String> |
getPartSpec()
获取分区描述,分区描述是一个有序Map, 其中key是分区名,value是对应分区的取值.
|
String |
getProjectName()
获取表的Project.
|
String |
getTableName()
获取表名
|
int |
hashCode() |
void |
setCols(String[] cols)
设置查询列
|
void |
setLable(String lable)
设置标签
|
void |
setMapperClass(Class<?> mapperClass)
设置输入表对应的mapper类
|
void |
setPartSpec(LinkedHashMap<String,String> partSpec)
设置分区描述
|
void |
setPartSpec(String partPath)
设置分区描述
|
void |
setProjectName(String projectName)
设置Project名
|
void |
setTableName(String name)
设置表名
|
String |
toString() |
void |
validate() |
public static final String DEFAULT_LABEL
public static final String INNER_OUTPUT_LABEL
public TableInfo(String projectName, String tblName, LinkedHashMap<String,String> partSpec, String[] cols, String lable)
projectName - tblName - partSpec - cols - lable - public TableInfo()
public TableInfo(TableInfo table)
public static TableInfo.TableInfoBuilder builder()
public void validate()
public String getProjectName()
public PartitionSpec getPartitionSpec()
public LinkedHashMap<String,String> getPartSpec()
public String getPartPath()
public void setPartSpec(LinkedHashMap<String,String> partSpec)
partSpec - public void setPartSpec(String partPath)
partSpec - public String[] getCols()
public void setCols(String[] cols)
cols - public String getTableName()
public void setTableName(String name)
name - public String getLabel()
public void setLable(String lable)
lable - public Class<?> getMapperClass()
public void setMapperClass(Class<?> mapperClass)
mapperClass - public void setProjectName(String projectName)
projectName - Copyright © 2021 Alibaba Cloud Computing. All rights reserved.