public class SimpleBufferManager extends Object implements BufferUsageManager, LowLevelCache
LowLevelCache.Priority
Constructor and Description |
---|
SimpleBufferManager(org.apache.hadoop.hive.common.io.Allocator allocator,
LlapDaemonCacheMetrics metrics) |
Modifier and Type | Method and Description |
---|---|
void |
decRefBuffer(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer buffer) |
void |
decRefBuffers(List<org.apache.hadoop.hive.common.io.encoded.MemoryBuffer> cacheBuffers) |
org.apache.hadoop.hive.common.io.Allocator |
getAllocator() |
org.apache.hadoop.hive.common.io.DiskRangeList |
getFileData(Object fileKey,
org.apache.hadoop.hive.common.io.DiskRangeList range,
long baseOffset,
org.apache.hadoop.hive.common.io.DataCache.DiskRangeListFactory factory,
LowLevelCacheCounters qfCounters,
org.apache.hadoop.hive.common.io.DataCache.BooleanRef gotAllData)
Gets file data for particular offsets.
|
boolean |
incRefBuffer(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer buffer) |
void |
notifyEvicted(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer buffer)
Notifies the cache that a particular buffer should be removed due to eviction.
|
long[] |
putFileData(Object fileKey,
org.apache.hadoop.hive.common.io.DiskRange[] ranges,
org.apache.hadoop.hive.common.io.encoded.MemoryBuffer[] chunks,
long baseOffset,
LowLevelCache.Priority priority,
LowLevelCacheCounters qfCounters)
Puts file data into cache.
|
public SimpleBufferManager(org.apache.hadoop.hive.common.io.Allocator allocator, LlapDaemonCacheMetrics metrics)
public void decRefBuffer(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer buffer)
decRefBuffer
in interface BufferUsageManager
public void decRefBuffers(List<org.apache.hadoop.hive.common.io.encoded.MemoryBuffer> cacheBuffers)
decRefBuffers
in interface BufferUsageManager
public boolean incRefBuffer(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer buffer)
incRefBuffer
in interface BufferUsageManager
public org.apache.hadoop.hive.common.io.Allocator getAllocator()
getAllocator
in interface BufferUsageManager
public org.apache.hadoop.hive.common.io.DiskRangeList getFileData(Object fileKey, org.apache.hadoop.hive.common.io.DiskRangeList range, long baseOffset, org.apache.hadoop.hive.common.io.DataCache.DiskRangeListFactory factory, LowLevelCacheCounters qfCounters, org.apache.hadoop.hive.common.io.DataCache.BooleanRef gotAllData)
LowLevelCache
getFileData
in interface LowLevelCache
public long[] putFileData(Object fileKey, org.apache.hadoop.hive.common.io.DiskRange[] ranges, org.apache.hadoop.hive.common.io.encoded.MemoryBuffer[] chunks, long baseOffset, LowLevelCache.Priority priority, LowLevelCacheCounters qfCounters)
LowLevelCache
putFileData
in interface LowLevelCache
public void notifyEvicted(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer buffer)
LowLevelCache
notifyEvicted
in interface LowLevelCache
Copyright © 2017 The Apache Software Foundation. All rights reserved.