arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venki Korukanti (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARROW-207) Extend BufferAllocator interface to allow decorators around BufferAllocator
Date Mon, 23 May 2016 23:07:12 GMT
Venki Korukanti created ARROW-207:
-------------------------------------

             Summary: 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)

Mime
View raw message