gpt4 book ai didi

org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableByteObjectInspector类的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 19:39:05 26 4
gpt4 key购买 nike

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

WritableByteObjectInspector介绍

[英]A WritableByteObjectInspector inspects a ByteWritable Object.
[中]可写字节对象检查器检查字节可写对象。

代码示例

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

@Override
public Object getPrimitiveJavaObject(Object o) {
 return o == null ? null : Byte.valueOf(get(o));
}

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

@Override
public int precision() {
 if (value == null) {
  return super.precision();
 }
 return BigDecimal.valueOf(value.get()).precision();
}

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

return writableOI.create((byte) object);
} else {
 return writableOI.copyObject(object);

代码示例来源:origin: com.facebook.presto.hive/hive-apache

ByteExtractor(int columnIndex) {
 super(columnIndex);
 object = PrimitiveObjectInspectorFactory.writableByteObjectInspector.create((byte) 0);
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache

@Override
 Object extract(int batchIndex) {
  int adjustedIndex = (colVector.isRepeating ? 0 : batchIndex);
  if (colVector.noNulls || !colVector.isNull[adjustedIndex]) {
   long value = vector[adjustedIndex];
   PrimitiveObjectInspectorFactory.writableByteObjectInspector.set(object, (byte) value);
   return object;
  } else {
   return null;
  }
 }
}

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

@Override
public Object copyObject(Object o) {
 return o == null ? null : new ByteWritable(get(o));
}

代码示例来源:origin: org.spark-project.hive/hive-serde

@Override
public int precision() {
 if (value == null) {
  return super.precision();
 }
 return BigDecimal.valueOf(value.get()).precision();
}

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

lv.vector[i] = (Byte) value;
} else {
 lv.vector[i] = ((WritableByteObjectInspector) outputOI).get(value);

代码示例来源:origin: org.apache.hive/hive-serde

@Override
public int precision() {
 if (value == null) {
  return super.precision();
 }
 return BigDecimal.valueOf(value.get()).precision();
}

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

return object;
} else {
 return ((WritableByteObjectInspector) objectInspector).get(object);

代码示例来源:origin: com.facebook.presto.hive/hive-apache

@Override
public int precision() {
 if (value == null) {
  return super.precision();
 }
 return BigDecimal.valueOf(value.get()).precision();
}

代码示例来源:origin: org.apache.hive/hive-serde

@Override
public Object getPrimitiveJavaObject(Object o) {
 return o == null ? null : Byte.valueOf(get(o));
}

代码示例来源:origin: com.github.hyukjinkwon/hive-serde

@Override
public int precision() {
 if (value == null) {
  return super.precision();
 }
 return BigDecimal.valueOf(value.get()).precision();
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache

@Override
public Object getPrimitiveJavaObject(Object o) {
 return o == null ? null : Byte.valueOf(get(o));
}

代码示例来源:origin: org.spark-project.hive/hive-serde

@Override
public Object getPrimitiveJavaObject(Object o) {
 return o == null ? null : Byte.valueOf(get(o));
}

代码示例来源:origin: com.github.hyukjinkwon/hive-serde

@Override
public Object getPrimitiveJavaObject(Object o) {
 return o == null ? null : Byte.valueOf(get(o));
}

代码示例来源:origin: org.apache.hive/hive-serde

@Override
public Object copyObject(Object o) {
 return o == null ? null : new ByteWritable(get(o));
}

代码示例来源:origin: com.github.hyukjinkwon/hive-serde

@Override
public Object copyObject(Object o) {
 return o == null ? null : new ByteWritable(get(o));
}

代码示例来源:origin: com.facebook.presto.hive/hive-apache

@Override
public Object copyObject(Object o) {
 return o == null ? null : new ByteWritable(get(o));
}

代码示例来源:origin: org.spark-project.hive/hive-serde

@Override
public Object copyObject(Object o) {
 return o == null ? null : new ByteWritable(get(o));
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com