@ThreadSafe public final class ApplianceShuffleWriter extends Object
It is a JNI wrapper of an equivalent C++ class.
| Constructor and Description |
|---|
ApplianceShuffleWriter(byte[] shuffleWriterConfig,
long bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Flushes written records and closes this writer.
|
void |
finalize() |
String |
getDatasetId() |
void |
write(byte[] chunk)
Writes a chunk of records.
|
public ApplianceShuffleWriter(byte[] shuffleWriterConfig,
long bufferSize)
shuffleWriterConfig - opaque configuration for creating a
shuffle writerbufferSize - the writer buffer sizepublic String getDatasetId()
public void write(byte[] chunk)
throws IOException
IOExceptionpublic void close()
throws IOException
IOException