Package io.trino.tempto.hadoop.hdfs
Interface HdfsClient
- All Known Implementing Classes:
WebHdfsClient
public interface HdfsClient
HDFS client.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface of an object that can open same input stream multiple times. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateDirectory(String path) voidbooleanlonggetPermission(String path) listDirectory(String path) voidloadFile(String path, OutputStream outputStream) default StringvoidremoveXAttr(String path, String key) voidsaveFile(String path, HdfsClient.RepeatableContentProducer repeatableContentProducer) voidsaveFile(String path, InputStream input) default voidvoidvoidvoidsetPermission(String path, String octalPermissions) void
-
Method Details
-
createDirectory
-
delete
-
saveFile
-
saveFile
-
saveFile
-
loadFile
-
listDirectory
-
loadFile
-
setXAttr
-
removeXAttr
-
getXAttr
-
getLength
- Parameters:
path- File to be examined- Returns:
- length of a file stored in HDFS, -1 if file not exists
-
exist
-
getOwner
-
setOwner
-
getGroup
-
setGroup
-
getPermission
-
setPermission
-