You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@arrow.apache.org by "Venki Korukanti (JIRA)" <ji...@apache.org> on 2016/07/07 21:03:11 UTC

[jira] [Resolved] (ARROW-207) Extend BufferAllocator interface to allow decorators around BufferAllocator

     [ https://issues.apache.org/jira/browse/ARROW-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Venki Korukanti resolved ARROW-207.
-----------------------------------
    Resolution: Won't Fix

Need a better way to handle this. Decorator is not sufficient.

> 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 - Memory
>            Reporter: Venki Korukanti
>            Priority: Minor
>
>     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
(v6.3.4#6332)