Package io.trino.plugin.hive
Class HdfsEnvironment
- java.lang.Object
-
- io.trino.plugin.hive.HdfsEnvironment
-
public class HdfsEnvironment extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHdfsEnvironment.HdfsContext
-
Constructor Summary
Constructors Constructor Description HdfsEnvironment(HdfsConfiguration hdfsConfiguration, HdfsConfig config, HdfsAuthentication hdfsAuthentication)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,E extends Exception>
RdoAs(ConnectorIdentity identity, GenericExceptionAction<R,E> action)voiddoAs(ConnectorIdentity identity, Runnable action)org.apache.hadoop.conf.ConfigurationgetConfiguration(HdfsEnvironment.HdfsContext context, org.apache.hadoop.fs.Path path)org.apache.hadoop.fs.FileSystemgetFileSystem(HdfsEnvironment.HdfsContext context, org.apache.hadoop.fs.Path path)org.apache.hadoop.fs.FileSystemgetFileSystem(ConnectorIdentity identity, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration configuration)org.apache.hadoop.fs.permission.FsPermissiongetNewDirectoryPermissions()booleanisNewFileInheritOwnership()
-
-
-
Constructor Detail
-
HdfsEnvironment
@Inject public HdfsEnvironment(HdfsConfiguration hdfsConfiguration, HdfsConfig config, HdfsAuthentication hdfsAuthentication)
-
-
Method Detail
-
getConfiguration
public org.apache.hadoop.conf.Configuration getConfiguration(HdfsEnvironment.HdfsContext context, org.apache.hadoop.fs.Path path)
-
getFileSystem
public org.apache.hadoop.fs.FileSystem getFileSystem(HdfsEnvironment.HdfsContext context, org.apache.hadoop.fs.Path path) throws IOException
- Throws:
IOException
-
getFileSystem
public org.apache.hadoop.fs.FileSystem getFileSystem(ConnectorIdentity identity, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration configuration) throws IOException
- Throws:
IOException
-
getNewDirectoryPermissions
public org.apache.hadoop.fs.permission.FsPermission getNewDirectoryPermissions()
-
isNewFileInheritOwnership
public boolean isNewFileInheritOwnership()
-
doAs
public <R,E extends Exception> R doAs(ConnectorIdentity identity, GenericExceptionAction<R,E> action) throws E extends Exception
- Throws:
E extends Exception
-
doAs
public void doAs(ConnectorIdentity identity, Runnable action)
-
-