use of com.torodb.kvdocument.values.heap.MapKvDocument in project torodb by torodb.
the class MapToKvValueConverter method convertMap.
private KvValue<?> convertMap(Map<String, Object> source) {
if (isSpecialObject(source)) {
return buildSpecialObject(source);
}
LinkedHashMap<String, KvValue<?>> docMap = new LinkedHashMap<>();
source.forEach((key, value) -> {
String interned = key.intern();
docMap.put(interned, convertValue(value));
});
return new MapKvDocument(docMap);
}
Aggregations