Package dev.vortex.spark.io
Class HadoopWritable
java.lang.Object
dev.vortex.spark.io.HadoopWritable
- All Implemented Interfaces:
dev.vortex.io.NativeWritable,Closeable,AutoCloseable
A
NativeWritable that streams a Vortex file into a Hadoop FileSystem.
Vortex writes and flushes but never closes; the file is finalized when the owner closes this.
-
Method Summary
-
Method Details
-
create
Creates (or overwrites) the file atpath, along with any missing parent directories. -
write
- Specified by:
writein interfacedev.vortex.io.NativeWritable- Throws:
IOException
-
flush
- Specified by:
flushin interfacedev.vortex.io.NativeWritable- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-