Interface EventFileWriter
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ParquetEventFileWriter,PBEventFileWriter
Interface that defines the contract for writing events to a file.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAppend a single event to the currently open file.voidclose()default voidwriteStreamToFile(EventStream stream) Write the entire stream to the file.
-
Method Details
-
append
Append a single event to the currently open file.- Parameters:
event- The event to append- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
writeStreamToFile
Write the entire stream to the file.- Parameters:
stream- The stream of events to write- Throws:
IOException
-