Package io.trino.filesystem.cache
Interface TrinoFileSystemCache
- All Known Implementing Classes:
TracingFileSystemCache
public interface TrinoFileSystemCache
-
Method Summary
Modifier and TypeMethodDescriptioncacheInput(TrinoInputFile delegate, String key) Get the TrinoInput 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.
-
Method Details
-
cacheInput
Get the TrinoInput of the TrinoInputFile, potentially using or updating the data cached at key.- Throws:
IOException
-
cacheStream
Get the TrinoInputStream of the TrinoInputFile, potentially using or updating the data cached at key.- Throws:
IOException
-
expire
Give a hint to the cache that the cache entry for location should be expired.- Throws:
IOException
-