adzcai commented on code in PR #13248:
URL: https://github.com/apache/arrow/pull/13248#discussion_r933723710


##########
java/c/src/main/java/org/apache/arrow/c/CDataReferenceManager.java:
##########
@@ -104,7 +104,21 @@ public ArrowBuf deriveBuffer(ArrowBuf sourceBuffer, long 
index, long length) {
 
   @Override
   public OwnershipTransferResult transferOwnership(ArrowBuf sourceBuffer, 
BufferAllocator targetAllocator) {
-    throw new UnsupportedOperationException();
+    ArrowBuf targetArrowBuf = this.deriveBuffer(sourceBuffer, 0, 
sourceBuffer.capacity());

Review Comment:
   > Are you trying to make the CDataReferenceManager usable in code that 
supports other ReferenceManager implementations?
   
   This would be helpful for a project I'm currently working on. For 
`CDataRefereneceManager` specifically, though, do you know if there's 
_currently_ any way to copy a `ValueVector`? I'm essentially trying to clone a 
VectorSchemaRoot that's read from a Parquet file into a `RootAllocator`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to