本文整理了Java中org.apache.hadoop.hive.ql.metadata.Hive.getFieldsFromDeserializer()
方法的一些代码示例,展示了Hive.getFieldsFromDeserializer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hive.getFieldsFromDeserializer()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.ql.metadata.Hive
类名称:Hive
方法名:getFieldsFromDeserializer
暂无
代码示例来源:origin: apache/hive
StatsSetupConst.setColumnStatsState(tblProps, colNames);
} else {
cols = Hive.getFieldsFromDeserializer(colPath, deserializer);
List<String> parts = db.getPartitionNames(dbTab[0].toLowerCase(), dbTab[1].toLowerCase(), (short) -1);
AggrStats aggrStats = db.getAggrColStatsFor(
cols = Hive.getFieldsFromDeserializer(colPath, deserializer);
colStats = db.getTableColumnStatistics(
dbTab[0].toLowerCase(), dbTab[1].toLowerCase(), colNames, false);
List<String> partitions = new ArrayList<String>();
partitions.add(part.getName());
cols = Hive.getFieldsFromDeserializer(colPath, deserializer);
colStats = db.getPartitionColumnStatistics(dbTab[0].toLowerCase(),
dbTab[1].toLowerCase(), partitions, colNames, false).get(part.getName());
cols = Hive.getFieldsFromDeserializer(colPath, deserializer);
代码示例来源:origin: apache/drill
StatsSetupConst.setColumnStatsState(tblProps, colNames);
} else {
cols = Hive.getFieldsFromDeserializer(colPath, deserializer);
List<String> parts = db.getPartitionNames(dbTab[0].toLowerCase(), dbTab[1].toLowerCase(), (short) -1);
AggrStats aggrStats = db.getAggrColStatsFor(dbTab[0].toLowerCase(), dbTab[1].toLowerCase(), colNames, parts);
cols = Hive.getFieldsFromDeserializer(colPath, deserializer);
colStats = db.getTableColumnStatistics(dbTab[0].toLowerCase(), dbTab[1].toLowerCase(), colNames);
List<String> partitions = new ArrayList<String>();
partitions.add(part.getName());
cols = Hive.getFieldsFromDeserializer(colPath, deserializer);
colStats = db.getPartitionColumnStatistics(dbTab[0].toLowerCase(), dbTab[1].toLowerCase(), partitions, colNames).get(part.getName());
cols = Hive.getFieldsFromDeserializer(colPath, deserializer);
代码示例来源:origin: apache/drill
Deserializer oldSerde = MetaStoreUtils.getDeserializer(
conf, tbl.getTTable(), false, oldSerdeName);
tbl.setFields(Hive.getFieldsFromDeserializer(tbl.getTableName(), oldSerde));
} catch (MetaException ex) {
throw new HiveException(ex);
代码示例来源:origin: apache/hive
Deserializer oldSerde = HiveMetaStoreUtils.getDeserializer(
conf, tbl.getTTable(), false, oldSerdeName);
tbl.setFields(Hive.getFieldsFromDeserializer(tbl.getTableName(), oldSerde));
} catch (MetaException ex) {
throw new HiveException(ex);
代码示例来源:origin: org.apache.hadoop.hive/hive-exec
public List<FieldSchema> getCols() {
boolean getColsFromSerDe = SerDeUtils.shouldGetColsFromSerDe(
getSerializationLib());
if (!getColsFromSerDe) {
return tTable.getSd().getCols();
} else {
try {
return Hive.getFieldsFromDeserializer(getTableName(), getDeserializer());
} catch (HiveException e) {
LOG.error("Unable to get field from serde: " + getSerializationLib(), e);
}
return new ArrayList<FieldSchema>();
}
}
代码示例来源:origin: org.apache.hadoop.hive/hive-exec
List<FieldSchema> cols = Hive.getFieldsFromDeserializer(colPath, tbl.getDeserializer());
if (descTbl.isFormatted()) {
outStream.writeBytes(MetaDataFormatUtils.getAllColumnsInformation(cols));
代码示例来源:origin: com.facebook.presto.hive/hive-apache
cols = Hive.getFieldsFromDeserializer(colPath, deserializer);
if (descTbl.isFormatted()) {
代码示例来源:origin: com.facebook.presto.hive/hive-apache
} else {
if (!Table.hasMetastoreBasedSchema(conf, serdeName)) {
tbl.setFields(Hive.getFieldsFromDeserializer(tbl.getTableName(), tbl.
getDeserializer()));
代码示例来源:origin: org.apache.hadoop.hive/hive-exec
alterTbl.getProps());
tbl.setFields(Hive.getFieldsFromDeserializer(tbl.getTableName(), tbl.
getDeserializer()));
内容来源于网络,如有侵权,请联系作者删除!