AsyncFileWriter

class hdfs_native.AsyncFileWriter(inner: AsyncRawFileWriter)

Bases: object

Methods Summary

close()

Closes the file and saves the final metadata to the NameNode

writable()

write(buf)

Writes buf to the file.

Methods Documentation

async close() None

Closes the file and saves the final metadata to the NameNode

writable() bool
async write(buf: Buffer) int

Writes buf to the file. Always writes all bytes