org.apache.hadoop.hive.ql.plan
Class CreateTableDesc
java.lang.Object
org.apache.hadoop.hive.ql.plan.DDLDesc
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<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,
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreateTableDesc
public CreateTableDesc()
CreateTableDesc
public CreateTableDesc(String databaseName,
String tableName,
boolean isExternal,
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
public CreateTableDesc(String tableName,
boolean isExternal,
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)
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 ArrayList<FieldSchema> getCols()
setCols
public void setCols(ArrayList<FieldSchema> cols)
getPartCols
public ArrayList<FieldSchema> getPartCols()
setPartCols
public void setPartCols(ArrayList<FieldSchema> partCols)
getBucketCols
public ArrayList<String> getBucketCols()
setBucketCols
public void setBucketCols(ArrayList<String> bucketCols)
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 ArrayList<Order> getSortCols()
- Returns:
- the sortCols
setSortCols
public void setSortCols(ArrayList<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()
throws SemanticException
- Throws:
SemanticException
isStoredAsSubDirectories
public boolean isStoredAsSubDirectories()
- Returns:
- the isStoredAsSubDirectories
setStoredAsSubDirectories
public void setStoredAsSubDirectories(boolean isStoredAsSubDirectories)
- Parameters:
isStoredAsSubDirectories
- the isStoredAsSubDirectories to set
Copyright © 2013 The Apache Software Foundation