@ThreadSafe public final class ApplianceShuffleReader extends Object
It is a JNI wrapper of an equivalent C++ class.
| Modifier and Type | Class and Description |
|---|---|
static class |
ShuffleReader.ReadChunkResult
Represents a chunk of data read from a shuffle dataset.
|
| Constructor and Description |
|---|
ApplianceShuffleReader(byte[] shuffleReaderConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
finalize() |
String |
getDatasetId() |
ShuffleReader.ReadChunkResult |
readIncludingPosition(byte[] startPosition,
byte[] endPosition)
Reads a chunk of data for keys in the given position range.
|
public ApplianceShuffleReader(byte[] shuffleReaderConfig)
shuffleReaderConfig - opaque configuration for creating a
shuffle readerpublic String getDatasetId()
public ShuffleReader.ReadChunkResult readIncludingPosition(byte[] startPosition, byte[] endPosition) throws IOException
<position-size><position><key-size><key>
<secondary-key-size><secondary-key><value-size><value>
where the sizes are 4-byte big-endian integers.startPosition - the start of the requested range (inclusive)endPosition - the end of the requested range (exclusive)IOException