public class Table extends Object
Constructor and Description |
---|
Table() |
Table(Database db,
String tableName,
String owner,
long createTime,
long lastAccessTime,
String location,
String dataLocation,
long tableSize,
TableType tableType,
List<String> partitionColumns,
String dataType) |
Table(Database db,
String tableName,
String dataLocation,
TableType tableType) |
Modifier and Type | Method and Description |
---|---|
void |
deleteTable()
Delete current table.
|
long |
getCreateTime() |
String |
getDataLocation() |
String |
getDataType() |
Database |
getDb() |
long |
getLastAccessTime() |
String |
getLocation() |
String |
getOwner() |
List<String> |
getPartitionColumns() |
PartitionSchema |
getPartitionDetail(Integer offset,
Integer limit)
Get describes the partition information for the table in specified offset and limit.
|
PartitionSchema |
getPartitions()
Get describes the partition information for the specified table.
|
TableSchema |
getTableDetail()
Get describes the metadata information for the specified table.
|
String |
getTableName() |
long |
getTableSize() |
TableType |
getTableType() |
String |
toString() |
public Table(Database db, String tableName, String owner, long createTime, long lastAccessTime, String location, String dataLocation, long tableSize, TableType tableType, List<String> partitionColumns, String dataType)
public Table()
public String getTableName()
public Database getDb()
public String getOwner()
public long getCreateTime()
public long getLastAccessTime()
public String getLocation()
public String getDataLocation()
public long getTableSize()
public TableType getTableType()
public String getDataType()
public TableSchema getTableDetail() throws DLIException
DLIException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic PartitionSchema getPartitionDetail(Integer offset, Integer limit) throws DLIException
offset
- get offsetlimit
- get limitDLIException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic PartitionSchema getPartitions() throws DLIException
DLIException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic void deleteTable() throws DLIException
DLIException
- If fail to call the API, e.g. server error or cannot deserialize the response bodyCopyright © 2023. All rights reserved.