public class UnifiedMemoryManager extends Object
| Constructor and Description | 
|---|
UnifiedMemoryManager(long capacity)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
delete(String key)
Removes a cache block associated with the given key from all memory
 areas, and deletes evicted representations (files in local FS). 
 | 
void | 
deleteAll()
Removes all cache blocks from all memory areas and deletes all evicted
 representations (files in local FS). 
 | 
CacheBlock | 
pin(String key,
   CacheBlock block,
   boolean dirty)
Pins a cache block into operation memory. 
 | 
void | 
pin(String key,
   long size,
   boolean dirty)
Pins a virtual cache block into operation memory, by making a size reservation. 
 | 
void | 
unpin(String key)
Unpins (releases) a cache block from operation memory. 
 | 
void | 
unpin(String key,
     CacheBlock block)
Unpins (releases) a cache block from operation memory. 
 | 
public CacheBlock pin(String key, CacheBlock block, boolean dirty)
key - unique identifier and local FS filename for evictionblock - cache block if not under UMM control, null otherwisedirty - indicator if block is dirty (subject to buffer pool management)public void pin(String key, long size, boolean dirty)
key - unique identifier and local FS filename for evictionsize - memory reservation in operation areadirty - indicator if block is dirty (subject to buffer pool management)public void unpin(String key)
key - unique identifier and local FS filename for evictionpublic void unpin(String key, CacheBlock block)
key - unique identifier and local FS filename for evictionblock - cache block which may be under UMM control, if null ignoredpublic void delete(String key)
key - unique identifier and local FS filename for evictionpublic void deleteAll()
Copyright © 2021 The Apache Software Foundation. All rights reserved.