Class IsmFormat.KeyPrefix
- java.lang.Object
-
- org.apache.beam.runners.dataflow.internal.IsmFormat.KeyPrefix
-
- Enclosing class:
- IsmFormat
public abstract static class IsmFormat.KeyPrefix extends java.lang.ObjectThe 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 followingcurrentKey = 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 Constructor Description KeyPrefix()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intgetSharedKeySize()abstract intgetUnsharedKeySize()static IsmFormat.KeyPrefixof(int sharedKeySize, int unsharedKeySize)
-
-
-
Method Detail
-
getSharedKeySize
public abstract int getSharedKeySize()
-
getUnsharedKeySize
public abstract int getUnsharedKeySize()
-
of
public static IsmFormat.KeyPrefix of(int sharedKeySize, int unsharedKeySize)
-
-