org.apache.hcatalog.api
Class HCatCreateTableDesc

Object
  extended by HCatCreateTableDesc

public class HCatCreateTableDesc
extends Object

The Class HCatCreateTableDesc for defining attributes for a new table.


Nested Class Summary
static class HCatCreateTableDesc.Builder
           
 
Method Summary
static HCatCreateTableDesc.Builder create(String dbName, String tableName, List<HCatFieldSchema> columns)
          Creates a builder for defining attributes.
 List<String> getBucketCols()
          Gets the bucket cols.
 List<HCatFieldSchema> getCols()
          Gets the cols.
 String getComments()
          Gets the comments.
 String getDatabaseName()
          Gets the database name.
 boolean getExternal()
          Gets the external.
 String getFileFormat()
          Gets the file format.
 boolean getIfNotExists()
          Gets the if not exists.
 String getLocation()
          Gets the location.
 int getNumBuckets()
           
 List<HCatFieldSchema> getPartitionCols()
          Gets the partition cols.
 List<Order> getSortCols()
          Gets the sort cols.
 String getStorageHandler()
          Gets the storage handler.
 String getTableName()
          Gets the table name.
 Map<String,String> getTblProps()
          Gets the tbl props.
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static HCatCreateTableDesc.Builder create(String dbName,
                                                 String tableName,
                                                 List<HCatFieldSchema> columns)
Creates a builder for defining attributes.

Parameters:
dbName - the db name
tableName - the table name
columns - the columns
Returns:
the builder

getIfNotExists

public boolean getIfNotExists()
Gets the if not exists.

Returns:
the if not exists

getTableName

public String getTableName()
Gets the table name.

Returns:
the table name

getCols

public List<HCatFieldSchema> getCols()
Gets the cols.

Returns:
the cols

getPartitionCols

public List<HCatFieldSchema> getPartitionCols()
Gets the partition cols.

Returns:
the partition cols

getBucketCols

public List<String> getBucketCols()
Gets the bucket cols.

Returns:
the bucket cols

getNumBuckets

public int getNumBuckets()

getComments

public String getComments()
Gets the comments.

Returns:
the comments

getStorageHandler

public String getStorageHandler()
Gets the storage handler.

Returns:
the storage handler

getLocation

public String getLocation()
Gets the location.

Returns:
the location

getExternal

public boolean getExternal()
Gets the external.

Returns:
the external

getSortCols

public List<Order> getSortCols()
Gets the sort cols.

Returns:
the sort cols

getTblProps

public Map<String,String> getTblProps()
Gets the tbl props.

Returns:
the tbl props

getFileFormat

public String getFileFormat()
Gets the file format.

Returns:
the file format

getDatabaseName

public String getDatabaseName()
Gets the database name.

Returns:
the database name

toString

public String toString()
Overrides:
toString in class Object