Class ArrowBufferAllocator


  • public class ArrowBufferAllocator
    extends Object
    Creates BufferAllocator instances.

    First tries to create a RootAllocator which uses off-heap memory and is faster. If that fails (usually due to JVM reflection restrictions), falls back to DatabricksBufferAllocator which uses heap memory.

    • Constructor Detail

      • ArrowBufferAllocator

        public ArrowBufferAllocator()
    • Method Detail

      • getBufferAllocator

        public static org.apache.arrow.memory.BufferAllocator getBufferAllocator()
        Returns:
        an instance of the BufferAllocator.
      • isUsingPatchedAllocator

        public static boolean isUsingPatchedAllocator()
        Returns:
        true iff the patched Databricks allocator is being used.