You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by go...@apache.org on 2014/09/19 06:48:51 UTC
svn commit: r1626124 -
/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorExpressionWriterFactory.java
Author: gopalv
Date: Fri Sep 19 04:48:50 2014
New Revision: 1626124
URL: http://svn.apache.org/r1626124
Log:
HIVE-8158: Optimize writeValue/setValue in VectorExpressionWriterFactory (Rajesh Balamohan via Gopal V)
Modified:
hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorExpressionWriterFactory.java
Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorExpressionWriterFactory.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorExpressionWriterFactory.java?rev=1626124&r1=1626123&r2=1626124&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorExpressionWriterFactory.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/VectorExpressionWriterFactory.java Fri Sep 19 04:48:50 2014
@@ -660,7 +660,7 @@ public final class VectorExpressionWrite
@Override
public Object writeValue(byte[] value, int start, int length) throws HiveException {
this.text.set(value, start, length);
- ((SettableStringObjectInspector) this.objectInspector).set(this.obj, this.text.toString());
+ ((SettableStringObjectInspector) this.objectInspector).set(this.obj, this.text);
return this.obj;
}
@@ -671,7 +671,7 @@ public final class VectorExpressionWrite
field = initValue(null);
}
this.text.set(value, start, length);
- ((SettableStringObjectInspector) this.objectInspector).set(field, this.text.toString());
+ ((SettableStringObjectInspector) this.objectInspector).set(field, this.text);
return field;
}