public class OutputStreamDataSink extends Object implements DataSink
| Constructor and Description |
|---|
OutputStreamDataSink(OutputStream outputStream) |
| 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.
|
public OutputStreamDataSink(OutputStream outputStream)
public long size()
DataSinkpublic long getRetainedSizeInBytes()
DataSinkgetRetainedSizeInBytes in interface DataSinkpublic void write(List<DataOutput> outputData)
DataSinkpublic void close()
throws IOException
DataSinkclose in interface DataSinkclose in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2012–2022. All rights reserved.