Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-207: Extend BufferAllocator interface to allow decorators around BufferAllocator #81

Closed
wants to merge 1 commit into from

Commits on May 23, 2016

  1. ARROW-207: Extend BufferAllocator interface to allow decorators aroun…

    …d BufferAllocator
    
    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.
    
      /**
       * 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);
    vkorukanti committed May 23, 2016
    Configuration menu
    Copy the full SHA
    ef39c73 View commit details
    Browse the repository at this point in the history