public final class SimpleAllocator extends Object implements org.apache.hadoop.hive.common.io.Allocator, BuddyAllocatorMXBean
| Constructor and Description |
|---|
SimpleAllocator(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
allocateMultiple(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer[] dest,
int size)
Deprecated.
|
void |
allocateMultiple(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer[] dest,
int size,
org.apache.hadoop.hive.common.io.Allocator.BufferObjectFactory factory) |
LlapAllocatorBuffer |
createUnallocated()
Deprecated.
|
void |
deallocate(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer buffer) |
int |
getArenaSize()
Gets the arena size.
|
boolean |
getIsDirect()
Gets if bytebuffers are allocated directly offheap.
|
int |
getMaxAllocation()
Gets maximum allocation size of allocator.
|
long |
getMaxCacheSize()
Gets the maximum cache size.
|
int |
getMinAllocation()
Gets minimum allocation size of allocator.
|
boolean |
isDirectAlloc() |
public SimpleAllocator(org.apache.hadoop.conf.Configuration conf)
@Deprecated public void allocateMultiple(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer[] dest, int size)
allocateMultiple in interface org.apache.hadoop.hive.common.io.Allocatorpublic void allocateMultiple(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer[] dest,
int size,
org.apache.hadoop.hive.common.io.Allocator.BufferObjectFactory factory)
allocateMultiple in interface org.apache.hadoop.hive.common.io.Allocatorpublic void deallocate(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer buffer)
deallocate in interface org.apache.hadoop.hive.common.io.Allocatorpublic boolean isDirectAlloc()
isDirectAlloc in interface org.apache.hadoop.hive.common.io.Allocator@Deprecated public LlapAllocatorBuffer createUnallocated()
createUnallocated in interface org.apache.hadoop.hive.common.io.Allocatorpublic boolean getIsDirect()
BuddyAllocatorMXBeangetIsDirect in interface BuddyAllocatorMXBeanpublic int getMinAllocation()
BuddyAllocatorMXBeangetMinAllocation in interface BuddyAllocatorMXBeanpublic int getMaxAllocation()
BuddyAllocatorMXBeangetMaxAllocation in interface org.apache.hadoop.hive.common.io.AllocatorgetMaxAllocation in interface BuddyAllocatorMXBeanpublic int getArenaSize()
BuddyAllocatorMXBeangetArenaSize in interface BuddyAllocatorMXBeanpublic long getMaxCacheSize()
BuddyAllocatorMXBeangetMaxCacheSize in interface BuddyAllocatorMXBeanCopyright © 2019 The Apache Software Foundation. All Rights Reserved.