Skip to content

Commit

Permalink
apacheGH-38511: [JAVA] added impl of getTransferPair(Field, BufferAll…
Browse files Browse the repository at this point in the history
…ocator, CallBack) for StructVector (#59)
  • Loading branch information
xxlaykxx authored and DenisTarasyuk committed Jan 17, 2024
1 parent 6dd7a7c commit d35dc1d
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}.
*/
Expand Down

0 comments on commit d35dc1d

Please sign in to comment.