public class CreateMaterializedViewDesc extends Object implements DDLDesc, Serializable
DDLDesc.DDLDescWithWriteId| Constructor and Description |
|---|
CreateMaterializedViewDesc(String viewName,
List<org.apache.hadoop.hive.metastore.api.FieldSchema> schema,
String comment,
Map<String,String> tblProps,
List<String> partColNames,
List<String> sortColNames,
List<String> distributeColNames,
boolean ifNotExists,
boolean rewriteEnabled,
String inputFormat,
String outputFormat,
String location,
String serde,
String storageHandler,
Map<String,String> serdeProps)
Used to create a materialized view descriptor.
|
public CreateMaterializedViewDesc(String viewName, List<org.apache.hadoop.hive.metastore.api.FieldSchema> schema, String comment, Map<String,String> tblProps, List<String> partColNames, List<String> sortColNames, List<String> distributeColNames, boolean ifNotExists, boolean rewriteEnabled, String inputFormat, String outputFormat, String location, String serde, String storageHandler, Map<String,String> serdeProps)
public String getViewName()
public void setViewName(String viewName)
public String getViewOriginalText()
public void setViewOriginalText(String originalText)
public String getViewExpandedText()
public void setViewExpandedText(String expandedText)
public boolean isRewriteEnabled()
public void setRewriteEnabled(boolean rewriteEnabled)
public List<org.apache.hadoop.hive.metastore.api.FieldSchema> getSchema()
public void setSchema(List<org.apache.hadoop.hive.metastore.api.FieldSchema> schema)
public List<org.apache.hadoop.hive.metastore.api.FieldSchema> getPartCols()
public void setPartCols(List<org.apache.hadoop.hive.metastore.api.FieldSchema> partCols)
public boolean isOrganized()
public List<org.apache.hadoop.hive.metastore.api.FieldSchema> getSortCols()
public void setSortCols(List<org.apache.hadoop.hive.metastore.api.FieldSchema> sortCols)
public List<org.apache.hadoop.hive.metastore.api.FieldSchema> getDistributeCols()
public void setDistributeCols(List<org.apache.hadoop.hive.metastore.api.FieldSchema> distributeCols)
public String getComment()
public void setComment(String comment)
public boolean getIfNotExists()
public void setIfNotExists(boolean ifNotExists)
public String getInputFormat()
public void setInputFormat(String inputFormat)
public String getOutputFormat()
public void setOutputFormat(String outputFormat)
public void setLocation(String location)
public String getLocation()
public String getSerde()
public String getStorageHandler()
public Table toTable(HiveConf conf) throws HiveException
HiveExceptionpublic void setInitialWriteId(Long writeId)
public Long getInitialWriteId()
public FileSinkDesc getAndUnsetWriter()
public void setWriter(FileSinkDesc writer)
public void setOwnerName(String ownerName)
public String getOwnerName()
Copyright © 2024 The Apache Software Foundation. All rights reserved.