public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static <K> void |
deepCopyMap(Map<K,Object> source,
Map<K,Object> target)
Deep copy of a map that may contain map values.
|
static String |
escapePropertyName(String propertyName) |
static int |
estimateMemoryUsage(Map<String,Object> map) |
static String |
getIdFromPath(String path) |
static String |
getPathFromId(String id) |
static int |
getUniqueClusterId()
Generate a unique cluster id, similar to the machine id field in MongoDB ObjectId objects.
|
static boolean |
isPropertyName(String key) |
static <K,V> Map<K,V> |
newMap() |
static <E> Set<E> |
newSet() |
static int |
pathDepth(String path) |
static String |
unescapePropertyName(String key) |
public static int pathDepth(String path)
public static <K,V> Map<K,V> newMap()
public static <E> Set<E> newSet()
public static int getUniqueClusterId()
public static boolean isPropertyName(String key)
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.