Package org.apache.nifi.couchbase
Class CouchbaseUtils
java.lang.Object
org.apache.nifi.couchbase.CouchbaseUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetStringContent(com.couchbase.client.java.Bucket bucket, String id) A convenient method to retrieve String value when Document type is unknown.static StringgetStringContent(Object content)
-
Constructor Details
-
CouchbaseUtils
public CouchbaseUtils()
-
-
Method Details
-
getStringContent
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 documentid- the id of the target document- Returns:
- String representation of the stored value, or null if not found
-
getStringContent
-