Class CouchbaseUtils

java.lang.Object
org.apache.nifi.couchbase.CouchbaseUtils

public class CouchbaseUtils extends Object
  • Constructor Details

    • CouchbaseUtils

      public CouchbaseUtils()
  • Method Details

    • getStringContent

      public static String getStringContent(com.couchbase.client.java.Bucket bucket, String id)
      A convenient method to retrieve String value when Document type is unknown. This method uses LegacyDocument to get, then tries to convert content based on its class.
      Parameters:
      bucket - the bucket to get a document
      id - the id of the target document
      Returns:
      String representation of the stored value, or null if not found
    • getStringContent

      public static String getStringContent(Object content)