public static class HCatCreateTableDesc.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
HCatCreateTableDesc.Builder |
bucketCols(java.util.List<java.lang.String> bucketCols,
int buckets)
Bucket cols.
|
HCatCreateTableDesc |
build()
Builds the HCatCreateTableDesc.
|
HCatCreateTableDesc.Builder |
comments(java.lang.String comment)
Comments.
|
HCatCreateTableDesc.Builder |
fileFormat(java.lang.String format)
File format.
|
HCatCreateTableDesc.Builder |
ifNotExists(boolean ifNotExists)
If not exists.
|
HCatCreateTableDesc.Builder |
isTableExternal(boolean isExternal)
Checks if is table external.
|
HCatCreateTableDesc.Builder |
location(java.lang.String location)
Location.
|
HCatCreateTableDesc.Builder |
partCols(java.util.List<HCatFieldSchema> partCols)
Partition cols.
|
HCatCreateTableDesc.Builder |
sortCols(java.util.ArrayList<Order> sortCols)
Sort cols.
|
HCatCreateTableDesc.Builder |
storageHandler(java.lang.String storageHandler)
Storage handler.
|
HCatCreateTableDesc.Builder |
tblProps(java.util.Map<java.lang.String,java.lang.String> tblProps)
Tbl props.
|
public HCatCreateTableDesc.Builder ifNotExists(boolean ifNotExists)
ifNotExists
- If set to true, hive will not throw exception, if a
table with the same name already exists.public HCatCreateTableDesc.Builder partCols(java.util.List<HCatFieldSchema> partCols)
partCols
- the partition colspublic HCatCreateTableDesc.Builder bucketCols(java.util.List<java.lang.String> bucketCols, int buckets)
bucketCols
- the bucket colspublic HCatCreateTableDesc.Builder storageHandler(java.lang.String storageHandler)
storageHandler
- the storage handlerpublic HCatCreateTableDesc.Builder location(java.lang.String location)
location
- the locationpublic HCatCreateTableDesc.Builder comments(java.lang.String comment)
comment
- the commentpublic HCatCreateTableDesc.Builder isTableExternal(boolean isExternal)
isExternal
- the is externalpublic HCatCreateTableDesc.Builder sortCols(java.util.ArrayList<Order> sortCols)
sortCols
- the sort colspublic HCatCreateTableDesc.Builder tblProps(java.util.Map<java.lang.String,java.lang.String> tblProps)
tblProps
- the tbl propspublic HCatCreateTableDesc.Builder fileFormat(java.lang.String format)
format
- the formatpublic HCatCreateTableDesc build() throws HCatException
HCatException
Copyright © 2012 The Apache Software Foundation