org.apache.hadoop.hive.ql.metadata.Hive.getFieldsFromDeserializerForMsStorage()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(197)

本文整理了Java中org.apache.hadoop.hive.ql.metadata.Hive.getFieldsFromDeserializerForMsStorage()方法的一些代码示例,展示了Hive.getFieldsFromDeserializerForMsStorage()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hive.getFieldsFromDeserializerForMsStorage()方法的具体详情如下:
包路径:org.apache.hadoop.hive.ql.metadata.Hive
类名称:Hive
方法名:getFieldsFromDeserializerForMsStorage

Hive.getFieldsFromDeserializerForMsStorage介绍

暂无

代码示例

代码示例来源:origin: apache/hive

private List<FieldSchema> getColsInternal(boolean forMs) {
 String serializationLib = getSerializationLib();
 try {
  // Do the lightweight check for general case.
  if (hasMetastoreBasedSchema(SessionState.getSessionConf(), serializationLib)) {
   return tTable.getSd().getCols();
  } else if (forMs && !shouldStoreFieldsInMetastore(
    SessionState.getSessionConf(), serializationLib, tTable.getParameters())) {
   return Hive.getFieldsFromDeserializerForMsStorage(this, getDeserializer());
  } else {
   return HiveMetaStoreUtils.getFieldsFromDeserializer(getTableName(), getDeserializer());
  }
 } catch (Exception e) {
  LOG.error("Unable to get field from serde: " + serializationLib, e);
 }
 return new ArrayList<FieldSchema>();
}

代码示例来源:origin: apache/drill

private List<FieldSchema> getColsInternal(boolean forMs) {
 String serializationLib = getSerializationLib();
 try {
  // Do the lightweight check for general case.
  if (hasMetastoreBasedSchema(SessionState.getSessionConf(), serializationLib)) {
   return tTable.getSd().getCols();
  } else if (forMs && !shouldStoreFieldsInMetastore(
    SessionState.getSessionConf(), serializationLib, tTable.getParameters())) {
   return Hive.getFieldsFromDeserializerForMsStorage(this, getDeserializer());
  } else {
   return MetaStoreUtils.getFieldsFromDeserializer(getTableName(), getDeserializer());
  }
 } catch (Exception e) {
  LOG.error("Unable to get field from serde: " + serializationLib, e);
 }
 return new ArrayList<FieldSchema>();
}

代码示例来源:origin: apache/hive

private List<FieldSchema> getColsInternal(boolean forMs) {
 try {
  String serializationLib = tPartition.getSd().getSerdeInfo().getSerializationLib();
  // Do the lightweight check for general case.
  if (Table.hasMetastoreBasedSchema(SessionState.getSessionConf(), serializationLib)) {
   return tPartition.getSd().getCols();
  } else if (forMs && !Table.shouldStoreFieldsInMetastore(
    SessionState.getSessionConf(), serializationLib, table.getParameters())) {
   return Hive.getFieldsFromDeserializerForMsStorage(table, getDeserializer());
  }
  return HiveMetaStoreUtils.getFieldsFromDeserializer(table.getTableName(), getDeserializer());
 } catch (Exception e) {
  LOG.error("Unable to get cols from serde: " +
    tPartition.getSd().getSerdeInfo().getSerializationLib(), e);
 }
 return new ArrayList<FieldSchema>();
}

代码示例来源:origin: apache/drill

private List<FieldSchema> getColsInternal(boolean forMs) {
 try {
  String serializationLib = tPartition.getSd().getSerdeInfo().getSerializationLib();
  // Do the lightweight check for general case.
  if (Table.hasMetastoreBasedSchema(SessionState.getSessionConf(), serializationLib)) {
   return tPartition.getSd().getCols();
  } else if (forMs && !Table.shouldStoreFieldsInMetastore(
    SessionState.getSessionConf(), serializationLib, table.getParameters())) {
   return Hive.getFieldsFromDeserializerForMsStorage(table, getDeserializer());
  }
  return MetaStoreUtils.getFieldsFromDeserializer(table.getTableName(), getDeserializer());
 } catch (Exception e) {
  LOG.error("Unable to get cols from serde: " +
    tPartition.getSd().getSerdeInfo().getSerializationLib(), e);
 }
 return new ArrayList<FieldSchema>();
}

相关文章

Hive类方法