org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatchCtx.getScratchColumnTypeNames()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(95)

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

VectorizedRowBatchCtx.getScratchColumnTypeNames介绍

暂无

代码示例

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

@Explain(vectorization = Vectorization.DETAIL, displayName = "scratchColumnTypeNames", explainLevels = { Level.DEFAULT, Level.EXTENDED })
public List<String> getScratchColumnTypeNames() {
 return Arrays.asList(vectorizedRowBatchCtx.getScratchColumnTypeNames());
}

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

public static String getScratchColumns(VectorizedRowBatchCtx vectorizedRowBatchCtx) {
 String[] scratchColumnTypeNames = vectorizedRowBatchCtx.getScratchColumnTypeNames();
 DataTypePhysicalVariation[] scratchDataTypePhysicalVariations =
   vectorizedRowBatchCtx.getScratchDataTypePhysicalVariations();
 final int size = scratchColumnTypeNames.length;
 List<String> result = new ArrayList<String>(size);
 for (int i = 0; i < size; i++) {
  String displayString = scratchColumnTypeNames[i];
  if (scratchDataTypePhysicalVariations != null &&
    scratchDataTypePhysicalVariations[i] != DataTypePhysicalVariation.NONE) {
   displayString += "/" + scratchDataTypePhysicalVariations[i].toString();
  }
  result.add(displayString);
 }
 return result.toString();
}

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

public void debugDisplayAllMaps(BaseWork work) {

  VectorizedRowBatchCtx vectorizedRowBatchCtx = work.getVectorizedRowBatchCtx();

  String[] allColumnNames = vectorizedRowBatchCtx.getRowColumnNames();
  Object columnTypeInfos = vectorizedRowBatchCtx.getRowColumnTypeInfos();
  int partitionColumnCount = vectorizedRowBatchCtx.getPartitionColumnCount();
  String[] scratchColumnTypeNames =vectorizedRowBatchCtx.getScratchColumnTypeNames();

  LOG.debug("debugDisplayAllMaps allColumnNames " + Arrays.toString(allColumnNames));
  LOG.debug("debugDisplayAllMaps columnTypeInfos " + Arrays.deepToString((Object[]) columnTypeInfos));
  LOG.debug("debugDisplayAllMaps partitionColumnCount " + partitionColumnCount);
  LOG.debug("debugDisplayAllMaps scratchColumnTypeNames " + Arrays.toString(scratchColumnTypeNames));
 }
}

相关文章