use of com.arangodb.velocypack.VPackBuilder in project YCSB by brianfrankcooper.
the class ArangoDB3Client method mapToJson.
private String mapToJson(HashMap<String, ByteIterator> values) {
VPackBuilder builder = new VPackBuilder().add(ValueType.OBJECT);
for (Map.Entry<String, ByteIterator> entry : values.entrySet()) {
builder.add(entry.getKey(), byteIteratorToString(entry.getValue()));
}
builder.close();
return arangoDB.util().deserialize(builder.slice(), String.class);
}
Aggregations