public class CreateTableDesc extends DDLDesc implements Serializable
Constructor and Description |
---|
CreateTableDesc() |
CreateTableDesc(String tableName,
boolean isExternal,
boolean isTemporary,
List<FieldSchema> cols,
List<FieldSchema> partCols,
List<String> bucketCols,
List<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,
boolean isTemporary,
List<FieldSchema> cols,
List<FieldSchema> partCols,
List<String> bucketCols,
List<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) |
public CreateTableDesc()
public CreateTableDesc(String databaseName, String tableName, boolean isExternal, boolean isTemporary, List<FieldSchema> cols, List<FieldSchema> partCols, List<String> bucketCols, List<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)
public CreateTableDesc(String tableName, boolean isExternal, boolean isTemporary, List<FieldSchema> cols, List<FieldSchema> partCols, List<String> bucketCols, List<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)
public boolean getIfNotExists()
public void setIfNotExists(boolean ifNotExists)
public String getTableName()
public String getDatabaseName()
public void setTableName(String tableName)
public List<FieldSchema> getCols()
public void setCols(ArrayList<FieldSchema> cols)
public List<FieldSchema> getPartCols()
public void setPartCols(ArrayList<FieldSchema> partCols)
public Integer getNumBucketsExplain()
public int getNumBuckets()
public void setNumBuckets(int numBuckets)
public String getFieldDelim()
public void setFieldDelim(String fieldDelim)
public String getFieldEscape()
public void setFieldEscape(String fieldEscape)
public String getCollItemDelim()
public void setCollItemDelim(String collItemDelim)
public String getMapKeyDelim()
public void setMapKeyDelim(String mapKeyDelim)
public String getLineDelim()
public void setLineDelim(String lineDelim)
public String getComment()
public void setComment(String comment)
public String getInputFormat()
public void setInputFormat(String inputFormat)
public String getOutputFormat()
public void setOutputFormat(String outputFormat)
public String getStorageHandler()
public void setStorageHandler(String storageHandler)
public String getLocation()
public void setLocation(String location)
public boolean isExternal()
public void setExternal(boolean isExternal)
public void setSortCols(ArrayList<Order> sortCols)
sortCols
- the sortCols to setpublic String getSerName()
public void setSerName(String serName)
serName
- the serName to setpublic void setSerdeProps(Map<String,String> serdeProps)
serdeProps
- the serde properties to setpublic void setTblProps(Map<String,String> tblProps)
tblProps
- the table properties to setpublic void setSkewedColNames(ArrayList<String> skewedColNames)
skewedColNames
- the skewedColNames to setpublic void setSkewedColValues(ArrayList<List<String>> skewedColValues)
skewedColValues
- the skewedColValues to setpublic void validate(HiveConf conf) throws SemanticException
SemanticException
public boolean isStoredAsSubDirectories()
public void setStoredAsSubDirectories(boolean isStoredAsSubDirectories)
isStoredAsSubDirectories
- the isStoredAsSubDirectories to setpublic String getNullFormat()
public void setNullFormat(String nullFormat)
nullFormat
- public boolean isTemporary()
public void setTemporary(boolean isTemporary)
isTemporary
- table is Temporary or not.public void setReplaceMode(boolean replaceMode)
replaceMode
- Determine if this CreateTable should behave like a replace-into alter insteadpublic boolean getReplaceMode()
Copyright © 2017 The Apache Software Foundation. All rights reserved.