Class MemoryFileSystemCache
java.lang.Object
io.trino.filesystem.memory.MemoryFileSystemCache
- All Implemented Interfaces:
TrinoFileSystemCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncacheInput(TrinoInputFile delegate, String key) Get the TrinoInput of the TrinoInputFile, potentially using or updating the data cached at key.longcacheLength(TrinoInputFile delegate, String key) Get the length of the TrinoInputFile, potentially using or updating the data cached at key.cacheStream(TrinoInputFile delegate, String key) Get the TrinoInputStream of the TrinoInputFile, potentially using or updating the data cached at key.voidGive a hint to the cache that the cache entry for location should be expired.voidexpire(Collection<Location> locations) Give a hint to the cache that the cache entry for locations should be expired.voidlonglonglong
-
Constructor Details
-
MemoryFileSystemCache
-
-
Method Details
-
cacheInput
Description copied from interface:TrinoFileSystemCacheGet the TrinoInput of the TrinoInputFile, potentially using or updating the data cached at key.- Specified by:
cacheInputin interfaceTrinoFileSystemCache- Throws:
IOException
-
cacheStream
Description copied from interface:TrinoFileSystemCacheGet the TrinoInputStream of the TrinoInputFile, potentially using or updating the data cached at key.- Specified by:
cacheStreamin interfaceTrinoFileSystemCache- Throws:
IOException
-
cacheLength
Description copied from interface:TrinoFileSystemCacheGet the length of the TrinoInputFile, potentially using or updating the data cached at key.- Specified by:
cacheLengthin interfaceTrinoFileSystemCache- Throws:
IOException
-
expire
Description copied from interface:TrinoFileSystemCacheGive a hint to the cache that the cache entry for location should be expired.- Specified by:
expirein interfaceTrinoFileSystemCache- Throws:
IOException
-
expire
Description copied from interface:TrinoFileSystemCacheGive a hint to the cache that the cache entry for locations should be expired.- Specified by:
expirein interfaceTrinoFileSystemCache- Throws:
IOException
-
flushCache
public void flushCache() -
getHitCount
public long getHitCount() -
getRequestCount
public long getRequestCount() -
getLargeFileSkippedCount
public long getLargeFileSkippedCount()
-