Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Drill >> mail # dev >> [12/17] git commit: DRILL-477: o.a.d.exec.vector.ValueHolderHelper.getVarCharHolder() creates a BigEndian buffer


Copy link to this message
-
[12/17] git commit: DRILL-477: o.a.d.exec.vector.ValueHolderHelper.getVarCharHolder() creates a BigEndian buffer
DRILL-477: o.a.d.exec.vector.ValueHolderHelper.getVarCharHolder() creates a BigEndian buffer
Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/025538cb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/025538cb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/025538cb

Branch: refs/heads/master
Commit: 025538cb20b9ec83cc01555938efa5d04d336f24
Parents: 9c701e1
Author: Aditya Kishore <[EMAIL PROTECTED]>
Authored: Wed Apr 2 01:02:43 2014 -0700
Committer: Jacques Nadeau <[EMAIL PROTECTED]>
Committed: Sat Apr 19 21:07:28 2014 -0700

 .../java/org/apache/drill/exec/vector/ValueHolderHelper.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/025538cb/exec/java-exec/src/main/java/org/apache/drill/exec/vector/ValueHolderHelper.java
diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/vector/ValueHolderHelper.java b/exec/java-exec/src/main/java/org/apache/drill/exec/vector/ValueHolderHelper.java
index 532ba43..55d49d1 100644
+++ b/exec/java-exec/src/main/java/org/apache/drill/exec/vector/ValueHolderHelper.java
@@ -17,6 +17,8 @@
  */
 package org.apache.drill.exec.vector;
 
+import java.nio.ByteOrder;
+
 import io.netty.buffer.UnpooledByteBufAllocator;
 
 import org.apache.drill.exec.expr.holders.VarCharHolder;
@@ -34,7 +36,7 @@ public class ValueHolderHelper {
     byte[] b = s.getBytes(Charsets.UTF_8);
     vch.start = 0;
     vch.end = b.length;
-    vch.buffer = UnpooledByteBufAllocator.DEFAULT.buffer(s.length()); // use the length of input string to allocate buffer.
+    vch.buffer = UnpooledByteBufAllocator.DEFAULT.buffer(s.length()).order(ByteOrder.LITTLE_ENDIAN); // use the length of input string to allocate buffer.
     vch.buffer.setBytes(0, b);
     return vch;
   }