public class MdsKey extends Object
| Constructor and Description |
|---|
MdsKey() |
| Modifier and Type | Method and Description |
|---|---|
static MDSKey |
getMDSIndexKey(Id.NamespacedId targetId,
String key,
String index)
Creates a key for metadata index row in the format:
[
INDEX_ROW_PREFIX][targetType][targetId][key][index] for value index rows |
static MDSKey |
getMDSValueKey(Id.NamespacedId targetId,
String key)
Creates a key for metadata value row in the format:
[
VALUE_ROW_PREFIX][targetType][targetId][key] for value index rows |
static String |
getMetadataKey(String type,
byte[] rowKey) |
static String |
getNamespaceId(MDSKey key) |
static Id.NamespacedId |
getNamespaceIdFromKey(String type,
byte[] rowKey) |
static String |
getTargetType(byte[] rowKey) |
public static String getTargetType(byte[] rowKey)
public static MDSKey getMDSValueKey(Id.NamespacedId targetId, @Nullable String key)
VALUE_ROW_PREFIX][targetType][targetId][key] for value index rowspublic static MDSKey getMDSIndexKey(Id.NamespacedId targetId, String key, @Nullable String index)
INDEX_ROW_PREFIX][targetType][targetId][key][index] for value index rowspublic static Id.NamespacedId getNamespaceIdFromKey(String type, byte[] rowKey)
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.