public class StdoutWriter<D> extends Object implements DataWriter<D>
| Modifier and Type | Class and Description |
|---|---|
static class |
StdoutWriter.Builder<D> |
| Constructor and Description |
|---|
StdoutWriter() |
| Modifier and Type | Method and Description |
|---|---|
long |
bytesWritten() |
void |
cleanup() |
void |
close() |
void |
commit() |
void |
flush() |
long |
recordsWritten() |
void |
write(D record) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataDescriptor, getMessageHandler, writeEnvelopepublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void write(D record) throws IOException
write in interface DataWriter<D>IOExceptionpublic void commit()
commit in interface DataWriter<D>public void cleanup()
cleanup in interface DataWriter<D>public long recordsWritten()
recordsWritten in interface DataWriter<D>public long bytesWritten()
throws IOException
bytesWritten in interface DataWriter<D>IOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in interface DataWriter<D>IOException