[
https://issues.apache.org/jira/browse/ARROW-207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17657241#comment-17657241
]
Rok Mihevc commented on ARROW-207:
----------------------------------
This issue has been migrated to [issue
#15554|https://github.com/apache/arrow/issues/15554] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> Extend BufferAllocator interface to allow decorators around BufferAllocator
> ---------------------------------------------------------------------------
>
> Key: ARROW-207
> URL: https://issues.apache.org/jira/browse/ARROW-207
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Java
> Reporter: Venki Korukanti
> Priority: Minor
> Fix For: 0.1.0
>
>
> Currently AllocationManager needs BufferAllocator instance reference for
> accounting purposes.
> Having a decorator around the BufferAllocator distrubs the accounting in
> AllocationManager.
> Add an unwrap method to allow getting the reference to inner
> BufferAllocator instance and use
> this method in AllocationManager to get the actual BufferAllocator.
> {code:java}
> /**
> * Unwrap the class so that exposes the provided interface, if
> possible. Otherwise, throw Exception.
> * @param c
> * The class or interface that you want this class to
> implement/extend.
> * @return The instance of that class related to 'this'
> */
> <T> T unwrap(Class<T> c);
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)