Package cz.o2.proxima.direct.io.bulkfs
Interface Writer
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
ProximaParquetWriter
public interface Writer extends java.io.CloseableProxima's abstraction of writer for bulk data.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close and flush the writer to targetFileSystem.PathgetPath()GetPathassociated with the Writer.voidwrite(StreamElement elem)WriteStreamElementinto this blob store.
-
-
-
Method Detail
-
write
void write(StreamElement elem) throws java.io.IOException
WriteStreamElementinto this blob store.- Parameters:
elem- the element to write- Throws:
java.io.IOException- on errors
-
close
void close() throws java.io.IOExceptionClose and flush the writer to targetFileSystem. Note that the associatedPathmight be visible on the target FileSystem only after closing associated writer.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException- on errors
-
-