Interface OutputCursor
- All Superinterfaces:
AutoCloseable
A cursor for manually writing data to a given
Output format. Obtaining
a cursor from an Output is ideal when you are pulling or generating records
from disparate sources and need precise control over writing to the the
output stream. If you don't need manual control, consider calling
Output.write(Target, Iterable) instead.- Author:
- jbanes
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(JSONObject record) Write a single record to the output streamdefault voidwrite(Iterable<JSONObject> iterable) Write a stream of data to the output stream.default voidwrite(Iterator<JSONObject> iterator) Write a stream of data to the output stream.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
write
Write a single record to the output stream- Parameters:
record- theJSONObjectto write
-
write
Write a stream of data to the output stream. This call does not close the cursor and can be called repeatedly as needed.- Parameters:
iterable- a stream a data to write
-
write
Write a stream of data to the output stream. This call does not close the cursor and can be called repeatedly as needed.- Parameters:
iterator- a stream a data to write
-