public class PartitionBuilder extends Object
Partition. The only requirements are 1. (database name and table name) or table
reference; 2. partition values; 3. whatever StorageDescriptorBuilder requires.| Constructor and Description |
|---|
PartitionBuilder() |
protected T child
public PartitionBuilder setDbName(String dbName)
public PartitionBuilder setTableName(String tableName)
public PartitionBuilder inTable(Table table)
public PartitionBuilder setValues(List<String> values)
public PartitionBuilder addValue(String value)
public PartitionBuilder setCreateTime(int createTime)
public PartitionBuilder setLastAccessTime(int lastAccessTime)
public PartitionBuilder setPartParams(Map<String,String> partParams)
public PartitionBuilder addPartParam(String key, String value)
public Partition build(org.apache.hadoop.conf.Configuration conf) throws MetaException
MetaExceptionpublic Partition addToTable(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.