Package io.trino.plugin.hive.fs
Class TrinoFileSystemCache
- java.lang.Object
-
- io.trino.plugin.hive.fs.TrinoFileSystemCache
-
- All Implemented Interfaces:
org.apache.hadoop.fs.FileSystemCache
public class TrinoFileSystemCache extends Object implements org.apache.hadoop.fs.FileSystemCache
-
-
Field Summary
Fields Modifier and Type Field Description static StringCACHE_KEYstatic TrinoFileSystemCacheINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseAll()org.apache.hadoop.fs.FileSystemget(URI uri, org.apache.hadoop.conf.Configuration conf)org.apache.hadoop.fs.FileSystemgetUnique(URI uri, org.apache.hadoop.conf.Configuration conf)voidremove(org.apache.hadoop.fs.FileSystem fileSystem)
-
-
-
Field Detail
-
CACHE_KEY
public static final String CACHE_KEY
- See Also:
- Constant Field Values
-
INSTANCE
public static final TrinoFileSystemCache INSTANCE
-
-
Method Detail
-
get
public org.apache.hadoop.fs.FileSystem get(URI uri, org.apache.hadoop.conf.Configuration conf) throws IOException
- Specified by:
getin interfaceorg.apache.hadoop.fs.FileSystemCache- Throws:
IOException
-
getUnique
public org.apache.hadoop.fs.FileSystem getUnique(URI uri, org.apache.hadoop.conf.Configuration conf) throws IOException
- Specified by:
getUniquein interfaceorg.apache.hadoop.fs.FileSystemCache- Throws:
IOException
-
remove
public void remove(org.apache.hadoop.fs.FileSystem fileSystem)
- Specified by:
removein interfaceorg.apache.hadoop.fs.FileSystemCache
-
closeAll
public void closeAll() throws IOException- Specified by:
closeAllin interfaceorg.apache.hadoop.fs.FileSystemCache- Throws:
IOException
-
-