Class 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 a MutationToken into a Map so that it can be Stream-ed and returned by the procedures
      static CouchbaseQueryResult convertToCouchbaseQueryResult​(java.util.List<com.couchbase.client.java.json.JsonObject> jsonObjects)
      Converts a JsonObject list into a CouchbaseQueryResult so that it can be Stream-ed and returned by the procedures
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CouchbaseUtils

        public CouchbaseUtils()
    • Method Detail

      • convertMutationTokenToMap

        public static java.util.Map<java.lang.String,​java.lang.Object> convertMutationTokenToMap​(com.couchbase.client.core.msg.kv.MutationToken mutationToken)
        Converts a MutationToken into a Map so that it can be Stream-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 a JsonObject list into a CouchbaseQueryResult so that it can be Stream-ed and returned by the procedures
        Parameters:
        jsonObjects - the JsonObject list to convert
        Returns:
        the converted list in the form of a CouchbaseQueryResult