From b5b075aa251a2d9b56519adf97272f9d064ec672 Mon Sep 17 00:00:00 2001 From: Ivan Chesnov Date: Tue, 31 Oct 2023 08:08:53 +0200 Subject: [PATCH] GH-38511: [JAVA] added impl of getTransferPair(Field, BufferAllocator, CallBack) for MapVector (#60) * GH-38511: [JAVA] added impl of getTransferPair(Field, BufferAllocator, CallBack) for MapVector --- .../main/java/org/apache/arrow/vector/complex/MapVector.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/java/vector/src/main/java/org/apache/arrow/vector/complex/MapVector.java b/java/vector/src/main/java/org/apache/arrow/vector/complex/MapVector.java index c1913574bab19..e082b2f43be64 100644 --- a/java/vector/src/main/java/org/apache/arrow/vector/complex/MapVector.java +++ b/java/vector/src/main/java/org/apache/arrow/vector/complex/MapVector.java @@ -146,6 +146,11 @@ public TransferPair getTransferPair(String ref, BufferAllocator allocator, CallB return new TransferImpl(ref, allocator, callBack); } + @Override + public TransferPair getTransferPair(Field field, BufferAllocator allocator, CallBack callBack) { + return new TransferImpl(field, allocator, callBack); + } + @Override public TransferPair makeTransferPair(ValueVector target) { return new MapVector.TransferImpl((MapVector) target);