public interface DataSink extends Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
File is complete
|
long |
getRetainedSizeInBytes()
Gets the size of the memory buffers.
|
long |
size()
Number of bytes written to this sink so far.
|
void |
write(List<DataOutput> outputData)
Write a batch of data.
|
long size()
long getRetainedSizeInBytes()
void write(List<DataOutput> outputData) throws IOException
IOExceptionvoid close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2012–2022. All rights reserved.