本文整理了Java中org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableDoubleObjectInspector.get()
方法的一些代码示例,展示了WritableDoubleObjectInspector.get()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WritableDoubleObjectInspector.get()
方法的具体详情如下:
包路径:org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableDoubleObjectInspector
类名称:WritableDoubleObjectInspector
方法名:get
暂无
代码示例来源:origin: apache/hive
@Override
public Object getPrimitiveJavaObject(Object o) {
return o == null ? null : Double.valueOf(get(o));
}
代码示例来源:origin: apache/hive
@Override
public Object copyObject(Object o) {
return o == null ? null : new DoubleWritable(get(o));
}
代码示例来源:origin: apache/drill
dv.vector[i] = (Double) value;
} else {
dv.vector[i] = ((WritableDoubleObjectInspector) outputOI).get(value);
代码示例来源:origin: apache/hive
return object;
} else {
return ((WritableDoubleObjectInspector) objectInspector).get(object);
代码示例来源:origin: org.apache.hive/hive-serde
@Override
public Object getPrimitiveJavaObject(Object o) {
return o == null ? null : Double.valueOf(get(o));
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
@Override
public Object getPrimitiveJavaObject(Object o) {
return o == null ? null : Double.valueOf(get(o));
}
代码示例来源:origin: org.spark-project.hive/hive-serde
@Override
public Object getPrimitiveJavaObject(Object o) {
return o == null ? null : Double.valueOf(get(o));
}
代码示例来源:origin: com.github.hyukjinkwon/hive-serde
@Override
public Object getPrimitiveJavaObject(Object o) {
return o == null ? null : Double.valueOf(get(o));
}
代码示例来源:origin: com.facebook.presto.hive/hive-apache
@Override
public Object copyObject(Object o) {
return o == null ? null : new DoubleWritable(get(o));
}
代码示例来源:origin: org.apache.hive/hive-serde
@Override
public Object copyObject(Object o) {
return o == null ? null : new DoubleWritable(get(o));
}
代码示例来源:origin: org.spark-project.hive/hive-serde
@Override
public Object copyObject(Object o) {
return o == null ? null : new DoubleWritable(get(o));
}
代码示例来源:origin: com.github.hyukjinkwon/hive-serde
@Override
public Object copyObject(Object o) {
return o == null ? null : new DoubleWritable(get(o));
}
代码示例来源:origin: io.github.myui/hivemall-core
@Override
public void merge(AggregationBuffer agg, Object partial) throws HiveException {
if (partial == null) {
return;
}
Object sumObj = internalMergeOI.getStructFieldData(partial, sumField);
Object countObj = internalMergeOI.getStructFieldData(partial, countField);
double sum = PrimitiveObjectInspectorFactory.writableDoubleObjectInspector.get(sumObj);
long count = PrimitiveObjectInspectorFactory.writableLongObjectInspector.get(countObj);
NDCGAggregationBuffer myAggr = (NDCGAggregationBuffer) agg;
myAggr.merge(sum, count);
}
代码示例来源:origin: org.apache.hivemall/hivemall-core
@Override
public void merge(AggregationBuffer agg, Object partial) throws HiveException {
if (partial == null) {
return;
}
Object sumObj = internalMergeOI.getStructFieldData(partial, sumField);
Object countObj = internalMergeOI.getStructFieldData(partial, countField);
double sum = writableDoubleObjectInspector.get(sumObj);
long count = writableLongObjectInspector.get(countObj);
RankingAUCAggregationBuffer myAggr = (RankingAUCAggregationBuffer) agg;
myAggr.merge(sum, count);
}
代码示例来源:origin: org.apache.hivemall/hivemall-core
@Override
public void merge(@SuppressWarnings("deprecation") AggregationBuffer agg, Object partial)
throws HiveException {
if (partial == null) {
return;
}
Object sumObj = internalMergeOI.getStructFieldData(partial, sumField);
Object countObj = internalMergeOI.getStructFieldData(partial, countField);
double sum = PrimitiveObjectInspectorFactory.writableDoubleObjectInspector.get(sumObj);
long count = PrimitiveObjectInspectorFactory.writableLongObjectInspector.get(countObj);
MAPAggregationBuffer myAggr = (MAPAggregationBuffer) agg;
myAggr.merge(sum, count);
}
代码示例来源:origin: org.apache.hivemall/hivemall-core
@Override
public void merge(@SuppressWarnings("deprecation") AggregationBuffer agg, Object partial)
throws HiveException {
if (partial == null) {
return;
}
Object sumObj = internalMergeOI.getStructFieldData(partial, sumField);
Object countObj = internalMergeOI.getStructFieldData(partial, countField);
double sum = PrimitiveObjectInspectorFactory.writableDoubleObjectInspector.get(sumObj);
long count = PrimitiveObjectInspectorFactory.writableLongObjectInspector.get(countObj);
MRRAggregationBuffer myAggr = (MRRAggregationBuffer) agg;
myAggr.merge(sum, count);
}
代码示例来源:origin: org.apache.hivemall/hivemall-core
@Override
public void merge(@SuppressWarnings("deprecation") AggregationBuffer agg, Object partial)
throws HiveException {
if (partial == null) {
return;
}
Object sumObj = internalMergeOI.getStructFieldData(partial, sumField);
Object countObj = internalMergeOI.getStructFieldData(partial, countField);
double sum = PrimitiveObjectInspectorFactory.writableDoubleObjectInspector.get(sumObj);
long count = PrimitiveObjectInspectorFactory.writableLongObjectInspector.get(countObj);
RecallAggregationBuffer myAggr = (RecallAggregationBuffer) agg;
myAggr.merge(sum, count);
}
代码示例来源:origin: org.apache.hivemall/hivemall-core
@Override
public void merge(@SuppressWarnings("deprecation") AggregationBuffer agg, Object partial)
throws HiveException {
if (partial == null) {
return;
}
Object sumObj = internalMergeOI.getStructFieldData(partial, sumField);
Object countObj = internalMergeOI.getStructFieldData(partial, countField);
double sum = PrimitiveObjectInspectorFactory.writableDoubleObjectInspector.get(sumObj);
long count = PrimitiveObjectInspectorFactory.writableLongObjectInspector.get(countObj);
PrecisionAggregationBuffer myAggr = (PrecisionAggregationBuffer) agg;
myAggr.merge(sum, count);
}
代码示例来源:origin: org.apache.hivemall/hivemall-core
@Override
public void merge(@SuppressWarnings("deprecation") AggregationBuffer agg, Object partial)
throws HiveException {
if (partial == null) {
return;
}
Object sumObj = internalMergeOI.getStructFieldData(partial, sumField);
Object countObj = internalMergeOI.getStructFieldData(partial, countField);
double sum = PrimitiveObjectInspectorFactory.writableDoubleObjectInspector.get(sumObj);
long count = PrimitiveObjectInspectorFactory.writableLongObjectInspector.get(countObj);
HitRateAggregationBuffer myAggr = (HitRateAggregationBuffer) agg;
myAggr.merge(sum, count);
}
代码示例来源:origin: org.apache.hivemall/hivemall-core
@Override
public void merge(@SuppressWarnings("deprecation") AggregationBuffer agg, Object partial)
throws HiveException {
if (partial == null) {
return;
}
Object sumObj = internalMergeOI.getStructFieldData(partial, sumField);
Object countObj = internalMergeOI.getStructFieldData(partial, countField);
double sum = writableDoubleObjectInspector.get(sumObj);
long count = writableLongObjectInspector.get(countObj);
NDCGAggregationBuffer myAggr = (NDCGAggregationBuffer) agg;
myAggr.merge(sum, count);
}
内容来源于网络,如有侵权,请联系作者删除!