Class NullCacheSizeAllocator
- java.lang.Object
-
- org.apache.pulsar.sql.presto.util.NullCacheSizeAllocator
-
- All Implemented Interfaces:
CacheSizeAllocator
public class NullCacheSizeAllocator extends java.lang.Object implements CacheSizeAllocator
Null cache size allocator.
-
-
Constructor Summary
Constructors Constructor Description NullCacheSizeAllocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallocate(long size)Cost available cache.longgetAvailableCacheSize()Get available cache size.voidrelease(long size)Release allocated cache size.
-
-
-
Method Detail
-
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
-
-