Interface Writer<T>
- Type Parameters:
T- the written object type
- All Known Subinterfaces:
InMemoryStream<T>, Stream<T>
- All Known Implementing Classes:
ArrayBlockingStream, LinkedBlockingStream, QueueStream
public interface Writer<T>
Writer contract for single objects or iterator-backed batches.
-
Method Summary
-
Method Details
-
write
Writes a single object.- Parameters:
object- the object to write- Throws:
IOException- if the write fails
-
write
Writes all objects provided by the iterator.- Parameters:
objects- the objects to write- Throws:
IOException- if the write fails
-