public class HadoopFileIO extends java.lang.Object implements FileIO
| Constructor and Description |
|---|
HadoopFileIO(org.apache.hadoop.conf.Configuration hadoopConf) |
HadoopFileIO(SerializableSupplier<org.apache.hadoop.conf.Configuration> hadoopConf) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.conf.Configuration |
conf() |
void |
deleteFile(java.lang.String path)
Delete the file at the given path.
|
InputFile |
newInputFile(java.lang.String path)
Get a
InputFile instance to read bytes from the file at the given path. |
OutputFile |
newOutputFile(java.lang.String path)
Get a
OutputFile instance to write bytes to the file at the given path. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteFile, deleteFile, initializepublic HadoopFileIO(org.apache.hadoop.conf.Configuration hadoopConf)
public HadoopFileIO(SerializableSupplier<org.apache.hadoop.conf.Configuration> hadoopConf)
public org.apache.hadoop.conf.Configuration conf()
public InputFile newInputFile(java.lang.String path)
FileIOInputFile instance to read bytes from the file at the given path.newInputFile in interface FileIOpublic OutputFile newOutputFile(java.lang.String path)
FileIOOutputFile instance to write bytes to the file at the given path.newOutputFile in interface FileIOpublic void deleteFile(java.lang.String path)
FileIOdeleteFile in interface FileIO