FileWriter
- class hdfs_native.FileWriter(inner: RawFileWriter)
Bases:
RawIOBaseMethods Summary
close()Closes the file and saves the final metadata to the NameNode
writable()Return whether object was opened for writing.
write(buf)Writes buf to the file.
Methods Documentation
- close() None
Closes the file and saves the final metadata to the NameNode
- writable() bool
Return whether object was opened for writing.
If False, write() will raise OSError.
- write(buf: Buffer) int
Writes buf to the file. Always writes all bytes