本文整理了Java中org.apache.hadoop.hive.ql.metadata.Table.getSkewedColNames()
方法的一些代码示例,展示了Table.getSkewedColNames()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.getSkewedColNames()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.ql.metadata.Table
类名称:Table
方法名:getSkewedColNames
暂无
代码示例来源:origin: apache/hive
/**
* Retrieve skewed column name for a table.
* @param alias table alias
* @return
*/
public List<String> getSkewedColumnNames(String alias) {
List<String> skewedColNames = null;
if (null != qbm &&
null != qbm.getAliasToTable() &&
qbm.getAliasToTable().size() > 0) {
Table tbl = getMetaData().getTableForAlias(alias);
skewedColNames = tbl.getSkewedColNames();
}
return skewedColNames;
}
代码示例来源:origin: apache/drill
/**
* Retrieve skewed column name for a table.
* @param alias table alias
* @return
*/
public List<String> getSkewedColumnNames(String alias) {
List<String> skewedColNames = null;
if (null != qbm &&
null != qbm.getAliasToTable() &&
qbm.getAliasToTable().size() > 0) {
Table tbl = getMetaData().getTableForAlias(alias);
skewedColNames = tbl.getSkewedColNames();
}
return skewedColNames;
}
代码示例来源:origin: apache/hive
tableScanOp == null ? null : tableScanOp.getConf().getTableMetadata();
skewedColumns =
table == null ? null : table.getSkewedColNames();
代码示例来源:origin: apache/hive
/**
* Handle alter table <name> not stored as directories
*
* @param tableName
* @param tab
* @throws SemanticException
*/
private void handleAlterTableDisableStoredAsDirs(String tableName, Table tab)
throws SemanticException {
List<String> skewedColNames = tab.getSkewedColNames();
List<List<String>> skewedColValues = tab.getSkewedColValues();
if ((skewedColNames == null) || (skewedColNames.size() == 0) || (skewedColValues == null)
|| (skewedColValues.size() == 0)) {
throw new SemanticException(ErrorMsg.ALTER_TBL_STOREDASDIR_NOT_SKEWED.getMsg(tableName));
}
AlterTableDesc alterTblDesc = new AlterTableDesc(tableName, false,
skewedColNames, skewedColValues);
alterTblDesc.setStoredAsSubDirectories(false);
rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(),
alterTblDesc)));
}
代码示例来源:origin: apache/drill
tableScanOp == null ? null : tableScanOp.getConf().getTableMetadata();
skewedColumns =
table == null ? null : table.getSkewedColNames();
代码示例来源:origin: apache/drill
/**
* Handle alter table <name> not stored as directories
*
* @param tableName
* @param tab
* @throws SemanticException
*/
private void handleAlterTableDisableStoredAsDirs(String tableName, Table tab)
throws SemanticException {
List<String> skewedColNames = tab.getSkewedColNames();
List<List<String>> skewedColValues = tab.getSkewedColValues();
if ((skewedColNames == null) || (skewedColNames.size() == 0) || (skewedColValues == null)
|| (skewedColValues.size() == 0)) {
throw new SemanticException(ErrorMsg.ALTER_TBL_STOREDASDIR_NOT_SKEWED.getMsg(tableName));
}
AlterTableDesc alterTblDesc = new AlterTableDesc(tableName, false,
skewedColNames, skewedColValues);
alterTblDesc.setStoredAsSubDirectories(false);
rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(),
alterTblDesc), conf));
}
代码示例来源:origin: apache/drill
newTblPartLoc = tblObj.getPath();
lbCtx = constructListBucketingCtx(tblObj.getSkewedColNames(), tblObj.getSkewedColValues(),
tblObj.getSkewedColValueLocationMaps(), tblObj.isStoredAsSubDirectories(), conf);
代码示例来源:origin: apache/hive
newTblPartLoc = tblObj.getPath();
lbCtx = constructListBucketingCtx(tblObj.getSkewedColNames(), tblObj.getSkewedColValues(),
tblObj.getSkewedColValueLocationMaps(), tblObj.isStoredAsSubDirectories());
代码示例来源:origin: apache/hive
bucketCols = table.getBucketCols();
inputFormatClass = table.getInputFormatClass();
lbCtx = constructListBucketingCtx(table.getSkewedColNames(), table.getSkewedColValues(),
table.getSkewedColValueLocationMaps(), table.isStoredAsSubDirectories());
isListBucketed = table.isStoredAsSubDirectories();
listBucketColNames = table.getSkewedColNames();
代码示例来源:origin: apache/drill
bucketCols = table.getBucketCols();
inputFormatClass = table.getInputFormatClass();
lbCtx = constructListBucketingCtx(table.getSkewedColNames(), table.getSkewedColValues(),
table.getSkewedColValueLocationMaps(), table.isStoredAsSubDirectories(), conf);
isListBucketed = table.isStoredAsSubDirectories();
listBucketColNames = table.getSkewedColNames();
代码示例来源:origin: apache/drill
destTableId++;
lbCtx = constructListBucketingCtx(dest_tab.getSkewedColNames(),
dest_tab.getSkewedColValues(), dest_tab.getSkewedColValueLocationMaps(),
dest_tab.isStoredAsSubDirectories(), conf);
代码示例来源:origin: apache/hive
destTableId++;
lbCtx = constructListBucketingCtx(destinationTable.getSkewedColNames(),
destinationTable.getSkewedColValues(), destinationTable.getSkewedColValueLocationMaps(),
destinationTable.isStoredAsSubDirectories());
代码示例来源:origin: com.facebook.presto.hive/hive-apache
/**
* Retrieve skewed column name for a table.
* @param alias table alias
* @return
*/
public List<String> getSkewedColumnNames(String alias) {
List<String> skewedColNames = null;
if (null != qbm &&
null != qbm.getAliasToTable() &&
qbm.getAliasToTable().size() > 0) {
Table tbl = getMetaData().getTableForAlias(alias);
skewedColNames = tbl.getSkewedColNames();
}
return skewedColNames;
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
table = getTable(parseContext, reduceSinkOp, tableScanOpsForJoin);
skewedColumns =
table == null ? null : table.getSkewedColNames();
代码示例来源:origin: com.facebook.presto.hive/hive-apache
/**
* Handle alter table <name> not stored as directories
*
* @param tableName
* @param tab
* @throws SemanticException
*/
private void handleAlterTableDisableStoredAsDirs(String tableName, Table tab)
throws SemanticException {
List<String> skewedColNames = tab.getSkewedColNames();
List<List<String>> skewedColValues = tab.getSkewedColValues();
if ((skewedColNames == null) || (skewedColNames.size() == 0) || (skewedColValues == null)
|| (skewedColValues.size() == 0)) {
throw new SemanticException(ErrorMsg.ALTER_TBL_STOREDASDIR_NOT_SKEWED.getMsg(tableName));
}
AlterTableDesc alterTblDesc = new AlterTableDesc(tableName, false,
skewedColNames, skewedColValues);
alterTblDesc.setStoredAsSubDirectories(false);
rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(),
alterTblDesc), conf));
}
代码示例来源:origin: apache/lens
xskewinfo.getColNames().addAll(tbl.getSkewedColNames());
for (List<String> value : tbl.getSkewedColValues()) {
XSkewColList colVallist = new XSkewColList();
代码示例来源:origin: org.apache.lens/lens-cube
xskewinfo.getColNames().addAll(tbl.getSkewedColNames());
for (List<String> value : tbl.getSkewedColValues()) {
XSkewColList colVallist = new XSkewColList();
代码示例来源:origin: com.facebook.presto.hive/hive-apache
newTblPartLoc = tblObj.getPath();
lbCtx = constructListBucketingCtx(tblObj.getSkewedColNames(), tblObj.getSkewedColValues(),
tblObj.getSkewedColValueLocationMaps(), tblObj.isStoredAsSubDirectories(), conf);
代码示例来源:origin: com.facebook.presto.hive/hive-apache
bucketCols = table.getBucketCols();
inputFormatClass = table.getInputFormatClass();
lbCtx = constructListBucketingCtx(table.getSkewedColNames(), table.getSkewedColValues(),
table.getSkewedColValueLocationMaps(), table.isStoredAsSubDirectories(), conf);
isListBucketed = table.isStoredAsSubDirectories();
listBucketColNames = table.getSkewedColNames();
代码示例来源:origin: com.facebook.presto.hive/hive-apache
destTableId++;
lbCtx = constructListBucketingCtx(dest_tab.getSkewedColNames(),
dest_tab.getSkewedColValues(), dest_tab.getSkewedColValueLocationMaps(),
dest_tab.isStoredAsSubDirectories(), conf);
内容来源于网络,如有侵权,请联系作者删除!