arrow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@apache.org
Subject [1/6] arrow git commit: ARROW-1107: [JAVA] Fix getField() for NullableMapVector
Date Thu, 08 Jun 2017 22:00:01 GMT
Repository: arrow
Updated Branches:
  refs/heads/master 8acc14c0b -> 037d78dda


ARROW-1107: [JAVA] Fix getField() for NullableMapVector

Closes #743


Project: http://git-wip-us.apache.org/repos/asf/arrow/repo
Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/6c3024b5
Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/6c3024b5
Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/6c3024b5

Branch: refs/heads/master
Commit: 6c3024b5273ef5f6450082f0a3e65ea10e6e27a3
Parents: 8acc14c
Author: Steven Phillips <steven@dremio.com>
Authored: Thu Feb 2 18:53:54 2017 -0800
Committer: Steven Phillips <steven@dremio.com>
Committed: Thu Jun 8 14:57:25 2017 -0700

----------------------------------------------------------------------
 .../org/apache/arrow/vector/complex/NullableMapVector.java    | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/arrow/blob/6c3024b5/java/vector/src/main/java/org/apache/arrow/vector/complex/NullableMapVector.java
----------------------------------------------------------------------
diff --git a/java/vector/src/main/java/org/apache/arrow/vector/complex/NullableMapVector.java
b/java/vector/src/main/java/org/apache/arrow/vector/complex/NullableMapVector.java
index f1f8640..ee95fde 100644
--- a/java/vector/src/main/java/org/apache/arrow/vector/complex/NullableMapVector.java
+++ b/java/vector/src/main/java/org/apache/arrow/vector/complex/NullableMapVector.java
@@ -41,6 +41,7 @@ import org.apache.arrow.vector.types.pojo.ArrowType;
 import org.apache.arrow.vector.types.pojo.ArrowType.Struct;
 import org.apache.arrow.vector.types.pojo.DictionaryEncoding;
 import org.apache.arrow.vector.types.pojo.FieldType;
+import org.apache.arrow.vector.types.pojo.Field;
 import org.apache.arrow.vector.util.CallBack;
 import org.apache.arrow.vector.util.TransferPair;
 
@@ -82,6 +83,12 @@ public class NullableMapVector extends MapVector implements FieldVector
{
   }
 
   @Override
+  public Field getField() {
+    Field f = super.getField();
+    return new Field(f.getName(), true, f.getType(), f.getChildren());
+  }
+
+  @Override
   public void loadFieldBuffers(ArrowFieldNode fieldNode, List<ArrowBuf> ownBuffers)
{
     BaseDataValueVector.load(fieldNode, getFieldInnerVectors(), ownBuffers);
     this.valueCount = fieldNode.getLength();


Mime
View raw message