From 4c9dfae6a6daf0919797baa40d96512ac2e22a7e Mon Sep 17 00:00:00 2001 From: Ivan Chesnov Date: Mon, 30 Oct 2023 15:26:22 +0200 Subject: [PATCH] GH-38511: [JAVA] added impl of getTransferPair(Field, BufferAllocator, CallBack) for StructVector --- .../org/apache/arrow/vector/complex/StructVector.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/java/vector/src/main/java/org/apache/arrow/vector/complex/StructVector.java b/java/vector/src/main/java/org/apache/arrow/vector/complex/StructVector.java index d947249fd3cdd..d0304a6fd2504 100644 --- a/java/vector/src/main/java/org/apache/arrow/vector/complex/StructVector.java +++ b/java/vector/src/main/java/org/apache/arrow/vector/complex/StructVector.java @@ -246,6 +246,15 @@ public TransferPair getTransferPair(Field field, BufferAllocator allocator) { allowConflictPolicyChanges), false); } + @Override + public TransferPair getTransferPair(Field field, BufferAllocator allocator, CallBack callBack) { + return new NullableStructTransferPair(this, new StructVector(field, + allocator, + callBack, + getConflictPolicy(), + allowConflictPolicyChanges), false); + } + /** * {@link TransferPair} for this (nullable) {@link StructVector}. */