本文整理了Java中org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableByteObjectInspector
类的一些代码示例,展示了WritableByteObjectInspector
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WritableByteObjectInspector
类的具体详情如下:
包路径:org.apache.hadoop.hive.serde2.objectinspector.primitive.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));
}
内容来源于网络,如有侵权,请联系作者删除!