public class TableBuilder extends Object
Table. The database name and table name must be provided, plus whatever is
needed by the underlying StorageDescriptorBuilder.| Constructor and Description |
|---|
TableBuilder() |
protected T child
public TableBuilder setCatName(String catName)
public TableBuilder setDbName(String dbName)
public TableBuilder inDb(Database db)
public TableBuilder setTableName(String tableName)
public TableBuilder setOwner(String owner)
public TableBuilder setOwnerType(PrincipalType ownerType)
public TableBuilder setViewOriginalText(String viewOriginalText)
public TableBuilder setViewExpandedText(String viewExpandedText)
public TableBuilder setType(String type)
public TableBuilder setCreationMetadata(CreationMetadata cm)
public TableBuilder setPartCols(List<FieldSchema> partCols)
public TableBuilder addPartCol(String name, String type, String comment)
public TableBuilder addPartCol(String name, String type)
public TableBuilder setCreateTime(int createTime)
public TableBuilder setLastAccessTime(int lastAccessTime)
public TableBuilder setRetention(int retention)
public TableBuilder setTableParams(Map<String,String> tableParams)
public TableBuilder addTableParam(String key, String value)
public TableBuilder setRewriteEnabled(boolean rewriteEnabled)
public TableBuilder setTemporary(boolean temporary)
public TableBuilder addMaterializedViewReferencedTable(SourceTable sourceTable)
public TableBuilder addMaterializedViewReferencedTables(Set<SourceTable> tableNames)
public TableBuilder setMaterializedViewValidTxnList(ValidTxnList validTxnList)
public Table build(org.apache.hadoop.conf.Configuration conf) throws MetaException
MetaExceptionpublic Table create(IMetaStoreClient client, org.apache.hadoop.conf.Configuration conf) throws org.apache.thrift.TException
org.apache.thrift.TExceptionprotected StorageDescriptor buildSd() throws MetaException
MetaExceptionpublic T setNumBuckets(int numBuckets)
public T setStorageDescriptorParams(Map<String,String> storageDescriptorParams)
public T setCompressed(boolean compressed)
public T setStoredAsSubDirectories(boolean storedAsSubDirectories)
public T setSkewedColValueLocationMaps(Map<List<String>,String> skewedColValueLocationMaps)
protected void setChild(T child)
protected SerDeInfo buildSerde()
protected List<FieldSchema> getCols() throws MetaException
MetaExceptionpublic T setCols(List<FieldSchema> cols)
Copyright © 2024 The Apache Software Foundation. All rights reserved.