public interface Writer<T> extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
close()
Flush all entries enqueued and close all resources for this writer.
|
void |
flush()
Flush the underlying row writer to ensure entries queued for write are fully written.
|
Index[] |
getIndices()
Get the indices that are being written to.
|
WriteResults |
write(T entry)
Writes an entry using default visibilities set elsewhere.
|
WriteResults |
write(T entry,
VisibilityHandler visibilityHandler)
Writes an entry using the provided visibility handler.
|
WriteResults write(T entry)
entry
- the entry to writeWriteResults write(T entry, VisibilityHandler visibilityHandler)
entry
- the entry to writevisibilityHandler
- the handler for determining field visibilityIndex[] getIndices()
void flush()
void close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2013–2022. All rights reserved.