Class NullCacheSizeAllocator
java.lang.Object
org.apache.pulsar.sql.presto.util.NullCacheSizeAllocator
- All Implemented Interfaces:
CacheSizeAllocator
Null cache size allocator.
-
Constructor Details
-
NullCacheSizeAllocator
public NullCacheSizeAllocator()
-
-
Method Details
-
getAvailableCacheSize
public long getAvailableCacheSize()Description copied from interface:CacheSizeAllocatorGet available cache size.- Specified by:
getAvailableCacheSizein interfaceCacheSizeAllocator- Returns:
- available cache size
-
allocate
public void allocate(long size) Description copied from interface:CacheSizeAllocatorCost available cache.- Specified by:
allocatein interfaceCacheSizeAllocator- Parameters:
size- allocate size
-
release
public void release(long size) Description copied from interface:CacheSizeAllocatorRelease allocated cache size.- Specified by:
releasein interfaceCacheSizeAllocator- Parameters:
size- release size
-