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.Allocator
public 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.Allocator
public void deallocate(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer buffer)
deallocate
in interface org.apache.hadoop.hive.common.io.Allocator
public 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.Allocator
public boolean getIsDirect()
BuddyAllocatorMXBean
getIsDirect
in interface BuddyAllocatorMXBean
public int getMinAllocation()
BuddyAllocatorMXBean
getMinAllocation
in interface BuddyAllocatorMXBean
public int getMaxAllocation()
BuddyAllocatorMXBean
getMaxAllocation
in interface org.apache.hadoop.hive.common.io.Allocator
getMaxAllocation
in interface BuddyAllocatorMXBean
public int getArenaSize()
BuddyAllocatorMXBean
getArenaSize
in interface BuddyAllocatorMXBean
public long getMaxCacheSize()
BuddyAllocatorMXBean
getMaxCacheSize
in interface BuddyAllocatorMXBean
Copyright © 2022 The Apache Software Foundation. All rights reserved.