zhztheplayer commented on a change in pull request #7768: URL: https://github.com/apache/arrow/pull/7768#discussion_r456764886
########## File path: java/memory/memory-core/src/main/java/org/apache/arrow/memory/BufferAllocator.java ########## @@ -126,6 +134,30 @@ BufferAllocator newChildAllocator( */ long getHeadroom(); + /** + * Forcibly allocate bytes. Returns whether the allocation fit within limits. + * + * @param size to increase + * @return Whether the allocation fit within limits. + */ + boolean forceAllocate(long size); Review comment: Hi @rymurr, E.g. Please see the changes such as https://github.com/apache/arrow/pull/7768/files#diff-68d17bac8aafb7004e2fb310f131df5fR159-R163 The uses of BufferAllocator requires for having the relevant methods extracted up to interface. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org