public class CompositeKeySerializationUtils extends Object
Constructor and Description |
---|
CompositeKeySerializationUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
computeRequiredBytesInKeyGroupPrefix(int totalKeyGroupsInJob) |
static boolean |
isAmbiguousKeyPossible(TypeSerializer keySerializer,
TypeSerializer namespaceSerializer) |
static boolean |
isSerializerTypeVariableSized(TypeSerializer<?> serializer) |
static <K> K |
readKey(TypeSerializer<K> keySerializer,
DataInputDeserializer inputView,
boolean ambiguousKeyPossible) |
static int |
readKeyGroup(int keyGroupPrefixBytes,
DataInputView inputView) |
static <N> N |
readNamespace(TypeSerializer<N> namespaceSerializer,
DataInputDeserializer inputView,
boolean ambiguousKeyPossible) |
static void |
readVariableIntBytes(DataInputView inputView,
int value) |
static void |
serializeKeyGroup(int keyGroup,
byte[] startKeyGroupPrefixBytes) |
static <K> void |
writeKey(K key,
TypeSerializer<K> keySerializer,
DataOutputSerializer keySerializationDataOutputView,
boolean ambiguousKeyPossible) |
static void |
writeKeyGroup(int keyGroup,
int keyGroupPrefixBytes,
DataOutputView keySerializationDateDataOutputView) |
static <N> void |
writeNameSpace(N namespace,
TypeSerializer<N> namespaceSerializer,
DataOutputSerializer keySerializationDataOutputView,
boolean ambiguousKeyPossible) |
static void |
writeVariableIntBytes(int value,
DataOutputView keySerializationDateDataOutputView) |
public static int readKeyGroup(int keyGroupPrefixBytes, DataInputView inputView) throws IOException
IOException
public static <K> K readKey(TypeSerializer<K> keySerializer, DataInputDeserializer inputView, boolean ambiguousKeyPossible) throws IOException
IOException
public static <N> N readNamespace(TypeSerializer<N> namespaceSerializer, DataInputDeserializer inputView, boolean ambiguousKeyPossible) throws IOException
IOException
public static <N> void writeNameSpace(N namespace, TypeSerializer<N> namespaceSerializer, DataOutputSerializer keySerializationDataOutputView, boolean ambiguousKeyPossible) throws IOException
IOException
public static boolean isSerializerTypeVariableSized(@Nonnull TypeSerializer<?> serializer)
public static boolean isAmbiguousKeyPossible(TypeSerializer keySerializer, TypeSerializer namespaceSerializer)
public static void writeKeyGroup(int keyGroup, int keyGroupPrefixBytes, DataOutputView keySerializationDateDataOutputView) throws IOException
IOException
public static <K> void writeKey(K key, TypeSerializer<K> keySerializer, DataOutputSerializer keySerializationDataOutputView, boolean ambiguousKeyPossible) throws IOException
IOException
public static void readVariableIntBytes(DataInputView inputView, int value) throws IOException
IOException
public static void writeVariableIntBytes(int value, DataOutputView keySerializationDateDataOutputView) throws IOException
IOException
public static void serializeKeyGroup(int keyGroup, byte[] startKeyGroupPrefixBytes)
public static int computeRequiredBytesInKeyGroupPrefix(int totalKeyGroupsInJob)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.