zinking opened a new issue, #168:
URL: https://github.com/apache/arrow-java/issues/168

   ### Describe the usage question you have. Please include as many useful 
details as  possible.
   
   
   @zhztheplayer 
   ```
     /**
      * Constructor.
      *
      * @param allocator a context allocator associated with this factory. Any 
buffer that will be created natively will
      *                  be then bound to this allocator.
      * @param memoryPool the native memory pool associated with this factory. 
Any buffer created natively should request
      *                   for memory spaces from this memory pool. This is a 
mapped instance of c++ arrow::MemoryPool.
      * @param datasetFactoryId an ID, at the same time the native pointer of 
the underlying native instance of this
      *                         factory. Make sure in c++ side  the pointer is 
pointing to the shared pointer wrapping
      *                         the actual instance so we could successfully 
decrease the reference count once
      *                         {@link #close} is called.
      * @see #close()
      */
     public NativeDatasetFactory(BufferAllocator allocator, NativeMemoryPool 
memoryPool, long datasetFactoryId) {
       this.allocator = allocator;
       this.memoryPool = memoryPool;
       this.datasetFactoryId = datasetFactoryId;
     }
   ```
   
   what's the relationship between allocator and memoryPool, does allocator 
allocate buffers from the memory pool or there is no such restrictions?
   
   thanks
   
   ### Component(s)
   
   Java


-- 
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: issues-unsubscr...@arrow.apache.org.apache.org

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

Reply via email to