Package apoc.couchbase.document
Class CouchbaseUtils
- java.lang.Object
-
- apoc.couchbase.document.CouchbaseUtils
-
public class CouchbaseUtils extends java.lang.Object
Utility class for Couchbase procedures.- Since:
- 15.8.2016
-
-
Constructor Summary
Constructors Constructor Description CouchbaseUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.Object>
convertMutationTokenToMap(com.couchbase.client.core.msg.kv.MutationToken mutationToken)
Converts aMutationToken
into aMap
so that it can beStream
-ed and returned by the proceduresstatic CouchbaseQueryResult
convertToCouchbaseQueryResult(java.util.List<com.couchbase.client.java.json.JsonObject> jsonObjects)
Converts aJsonObject
list into aCouchbaseQueryResult
so that it can beStream
-ed and returned by the procedures
-
-
-
Method Detail
-
convertMutationTokenToMap
public static java.util.Map<java.lang.String,java.lang.Object> convertMutationTokenToMap(com.couchbase.client.core.msg.kv.MutationToken mutationToken)
Converts aMutationToken
into aMap
so that it can beStream
-ed and returned by the procedures- Parameters:
mutationToken
- the mutation token to convert- Returns:
- the converted mutation token in the form of a Map
-
convertToCouchbaseQueryResult
public static CouchbaseQueryResult convertToCouchbaseQueryResult(java.util.List<com.couchbase.client.java.json.JsonObject> jsonObjects)
Converts aJsonObject
list into aCouchbaseQueryResult
so that it can beStream
-ed and returned by the procedures- Parameters:
jsonObjects
- theJsonObject
list to convert- Returns:
- the converted list in the form of a CouchbaseQueryResult
-
-