Class IsmFormat.KeyPrefix
java.lang.Object
org.apache.beam.runners.dataflow.internal.IsmFormat.KeyPrefix
- Enclosing class:
IsmFormat
The prefix used before each key which contains the number of shared and unshared bytes from the
previous key that was read. The key prefix along with the previous key and the unshared key
bytes allows one to construct the current key by doing the following
currentKey =
previousKey[0 : sharedBytes] + read(unsharedBytes)
.
The key prefix is encoded as:
- number of shared key bytes (variable length integer coding)
- number of unshared key bytes (variable length integer coding)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract int
abstract int
static IsmFormat.KeyPrefix
of
(int sharedKeySize, int unsharedKeySize)
-
Constructor Details
-
KeyPrefix
public KeyPrefix()
-
-
Method Details
-
of