org.apache.hadoop.hive.ql.plan
Class CreateTableDesc

java.lang.Object
  extended by org.apache.hadoop.hive.ql.plan.DDLDesc
      extended by org.apache.hadoop.hive.ql.plan.CreateTableDesc
All Implemented Interfaces:
Serializable

public class CreateTableDesc
extends DDLDesc
implements Serializable

CreateTableDesc.

See Also:
Serialized Form

Constructor Summary
CreateTableDesc()
           
CreateTableDesc(String tableName, boolean isExternal, List<org.apache.hadoop.hive.metastore.api.FieldSchema> cols, List<org.apache.hadoop.hive.metastore.api.FieldSchema> partCols, List<String> bucketCols, List<org.apache.hadoop.hive.metastore.api.Order> sortCols, int numBuckets, String fieldDelim, String fieldEscape, String collItemDelim, String mapKeyDelim, String lineDelim, String comment, String inputFormat, String outputFormat, String location, String serName, String storageHandler, Map<String,String> serdeProps, Map<String,String> tblProps, boolean ifNotExists, List<String> skewedColNames, List<List<String>> skewedColValues)
           
CreateTableDesc(String databaseName, String tableName, boolean isExternal, List<org.apache.hadoop.hive.metastore.api.FieldSchema> cols, List<org.apache.hadoop.hive.metastore.api.FieldSchema> partCols, List<String> bucketCols, List<org.apache.hadoop.hive.metastore.api.Order> sortCols, int numBuckets, String fieldDelim, String fieldEscape, String collItemDelim, String mapKeyDelim, String lineDelim, String comment, String inputFormat, String outputFormat, String location, String serName, String storageHandler, Map<String,String> serdeProps, Map<String,String> tblProps, boolean ifNotExists, List<String> skewedColNames, List<List<String>> skewedColValues)
           
 
Method Summary
 List<String> getBucketCols()
           
 String getCollItemDelim()
           
 List<org.apache.hadoop.hive.metastore.api.FieldSchema> getCols()
           
 List<String> getColsString()
           
 String getComment()
           
 String getDatabaseName()
           
 String getFieldDelim()
           
 String getFieldEscape()
           
 boolean getIfNotExists()
           
 String getInputFormat()
           
 String getLineDelim()
           
 String getLocation()
           
 String getMapKeyDelim()
           
 String getNullFormat()
           
 int getNumBuckets()
           
 Integer getNumBucketsExplain()
           
 String getOutputFormat()
           
 List<org.apache.hadoop.hive.metastore.api.FieldSchema> getPartCols()
           
 List<String> getPartColsString()
           
 Map<String,String> getSerdeProps()
           
 String getSerName()
           
 List<String> getSkewedColNames()
           
 List<List<String>> getSkewedColValues()
           
 List<org.apache.hadoop.hive.metastore.api.Order> getSortCols()
           
 String getStorageHandler()
           
 String getTableName()
           
 Map<String,String> getTblProps()
           
 boolean isExternal()
           
 boolean isStoredAsSubDirectories()
           
 void setBucketCols(ArrayList<String> bucketCols)
           
 void setCollItemDelim(String collItemDelim)
           
 void setCols(ArrayList<org.apache.hadoop.hive.metastore.api.FieldSchema> cols)
           
 void setComment(String comment)
           
 void setExternal(boolean isExternal)
           
 void setFieldDelim(String fieldDelim)
           
 void setFieldEscape(String fieldEscape)
           
 void setIfNotExists(boolean ifNotExists)
           
 void setInputFormat(String inputFormat)
           
 void setLineDelim(String lineDelim)
           
 void setLocation(String location)
           
 void setMapKeyDelim(String mapKeyDelim)
           
 void setNullFormat(String nullFormat)
          Set null format string
 void setNumBuckets(int numBuckets)
           
 void setOutputFormat(String outputFormat)
           
 void setPartCols(ArrayList<org.apache.hadoop.hive.metastore.api.FieldSchema> partCols)
           
 void setSerdeProps(Map<String,String> serdeProps)
           
 void setSerName(String serName)
           
 void setSkewedColNames(ArrayList<String> skewedColNames)
           
 void setSkewedColValues(ArrayList<List<String>> skewedColValues)
           
 void setSortCols(ArrayList<org.apache.hadoop.hive.metastore.api.Order> sortCols)
           
 void setStorageHandler(String storageHandler)
           
 void setStoredAsSubDirectories(boolean isStoredAsSubDirectories)
           
 void setTableName(String tableName)
           
 void setTblProps(Map<String,String> tblProps)
           
 void validate(HiveConf conf)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateTableDesc

public CreateTableDesc()

CreateTableDesc

public CreateTableDesc(String databaseName,
                       String tableName,
                       boolean isExternal,
                       List<org.apache.hadoop.hive.metastore.api.FieldSchema> cols,
                       List<org.apache.hadoop.hive.metastore.api.FieldSchema> partCols,
                       List<String> bucketCols,
                       List<org.apache.hadoop.hive.metastore.api.Order> sortCols,
                       int numBuckets,
                       String fieldDelim,
                       String fieldEscape,
                       String collItemDelim,
                       String mapKeyDelim,
                       String lineDelim,
                       String comment,
                       String inputFormat,
                       String outputFormat,
                       String location,
                       String serName,
                       String storageHandler,
                       Map<String,String> serdeProps,
                       Map<String,String> tblProps,
                       boolean ifNotExists,
                       List<String> skewedColNames,
                       List<List<String>> skewedColValues)

CreateTableDesc

public CreateTableDesc(String tableName,
                       boolean isExternal,
                       List<org.apache.hadoop.hive.metastore.api.FieldSchema> cols,
                       List<org.apache.hadoop.hive.metastore.api.FieldSchema> partCols,
                       List<String> bucketCols,
                       List<org.apache.hadoop.hive.metastore.api.Order> sortCols,
                       int numBuckets,
                       String fieldDelim,
                       String fieldEscape,
                       String collItemDelim,
                       String mapKeyDelim,
                       String lineDelim,
                       String comment,
                       String inputFormat,
                       String outputFormat,
                       String location,
                       String serName,
                       String storageHandler,
                       Map<String,String> serdeProps,
                       Map<String,String> tblProps,
                       boolean ifNotExists,
                       List<String> skewedColNames,
                       List<List<String>> skewedColValues)
Method Detail

getColsString

public List<String> getColsString()

getPartColsString

public List<String> getPartColsString()

getIfNotExists

public boolean getIfNotExists()

setIfNotExists

public void setIfNotExists(boolean ifNotExists)

getTableName

public String getTableName()

getDatabaseName

public String getDatabaseName()

setTableName

public void setTableName(String tableName)

getCols

public List<org.apache.hadoop.hive.metastore.api.FieldSchema> getCols()

setCols

public void setCols(ArrayList<org.apache.hadoop.hive.metastore.api.FieldSchema> cols)

getPartCols

public List<org.apache.hadoop.hive.metastore.api.FieldSchema> getPartCols()

setPartCols

public void setPartCols(ArrayList<org.apache.hadoop.hive.metastore.api.FieldSchema> partCols)

getBucketCols

public List<String> getBucketCols()

setBucketCols

public void setBucketCols(ArrayList<String> bucketCols)

getNumBucketsExplain

public Integer getNumBucketsExplain()

getNumBuckets

public int getNumBuckets()

setNumBuckets

public void setNumBuckets(int numBuckets)

getFieldDelim

public String getFieldDelim()

setFieldDelim

public void setFieldDelim(String fieldDelim)

getFieldEscape

public String getFieldEscape()

setFieldEscape

public void setFieldEscape(String fieldEscape)

getCollItemDelim

public String getCollItemDelim()

setCollItemDelim

public void setCollItemDelim(String collItemDelim)

getMapKeyDelim

public String getMapKeyDelim()

setMapKeyDelim

public void setMapKeyDelim(String mapKeyDelim)

getLineDelim

public String getLineDelim()

setLineDelim

public void setLineDelim(String lineDelim)

getComment

public String getComment()

setComment

public void setComment(String comment)

getInputFormat

public String getInputFormat()

setInputFormat

public void setInputFormat(String inputFormat)

getOutputFormat

public String getOutputFormat()

setOutputFormat

public void setOutputFormat(String outputFormat)

getStorageHandler

public String getStorageHandler()

setStorageHandler

public void setStorageHandler(String storageHandler)

getLocation

public String getLocation()

setLocation

public void setLocation(String location)

isExternal

public boolean isExternal()

setExternal

public void setExternal(boolean isExternal)

getSortCols

public List<org.apache.hadoop.hive.metastore.api.Order> getSortCols()
Returns:
the sortCols

setSortCols

public void setSortCols(ArrayList<org.apache.hadoop.hive.metastore.api.Order> sortCols)
Parameters:
sortCols - the sortCols to set

getSerName

public String getSerName()
Returns:
the serDeName

setSerName

public void setSerName(String serName)
Parameters:
serName - the serName to set

getSerdeProps

public Map<String,String> getSerdeProps()
Returns:
the serDe properties

setSerdeProps

public void setSerdeProps(Map<String,String> serdeProps)
Parameters:
serdeProps - the serde properties to set

getTblProps

public Map<String,String> getTblProps()
Returns:
the table properties

setTblProps

public void setTblProps(Map<String,String> tblProps)
Parameters:
tblProps - the table properties to set

getSkewedColNames

public List<String> getSkewedColNames()
Returns:
the skewedColNames

setSkewedColNames

public void setSkewedColNames(ArrayList<String> skewedColNames)
Parameters:
skewedColNames - the skewedColNames to set

getSkewedColValues

public List<List<String>> getSkewedColValues()
Returns:
the skewedColValues

setSkewedColValues

public void setSkewedColValues(ArrayList<List<String>> skewedColValues)
Parameters:
skewedColValues - the skewedColValues to set

validate

public void validate(HiveConf conf)
              throws SemanticException
Throws:
SemanticException

isStoredAsSubDirectories

public boolean isStoredAsSubDirectories()
Returns:
the isStoredAsSubDirectories

setStoredAsSubDirectories

public void setStoredAsSubDirectories(boolean isStoredAsSubDirectories)
Parameters:
isStoredAsSubDirectories - the isStoredAsSubDirectories to set

getNullFormat

public String getNullFormat()
Returns:
the nullFormat

setNullFormat

public void setNullFormat(String nullFormat)
Set null format string

Parameters:
nullFormat -


Copyright © 2014 The Apache Software Foundation. All rights reserved.