@Tags(value={"nosql","couchbase","database","get"}) @InputRequirement(value=INPUT_REQUIRED) @CapabilityDescription(value="Get a document from Couchbase Server via Key/Value access. The ID of the document to fetch may be supplied by setting the <Document Id> property. NOTE: if the Document Id property is not set, the contents of the FlowFile will be read to determine the Document Id, which means that the contents of the entire FlowFile will be buffered in memory.") @SeeAlso(value=CouchbaseClusterControllerService.class) @WritesAttribute(attribute="couchbase.cluster",description="Cluster where the document was retrieved from.") @WritesAttribute(attribute="couchbase.bucket",description="Bucket where the document was retrieved from.") @WritesAttribute(attribute="couchbase.doc.id",description="Id of the document.") @WritesAttribute(attribute="couchbase.doc.cas",description="CAS of the document.") @WritesAttribute(attribute="couchbase.doc.expiry",description="Expiration of the document.") @WritesAttribute(attribute="couchbase.exception",description="If Couchbase related error occurs the CouchbaseException class name will be captured here.") public class GetCouchbaseKey extends AbstractCouchbaseProcessor
BUCKET_NAME, COUCHBASE_CLUSTER_SERVICE, DOC_ID, DOCUMENT_TYPE, REL_FAILURE, REL_ORIGINAL, REL_RETRY, REL_SUCCESS
Constructor and Description |
---|
GetCouchbaseKey() |
Modifier and Type | Method and Description |
---|---|
protected void |
addSupportedProperties(java.util.List<PropertyDescriptor> descriptors)
Add processor specific properties.
|
protected void |
addSupportedRelationships(java.util.Set<Relationship> relationships)
Add processor specific relationships.
|
void |
onTrigger(ProcessContext context,
ProcessSession session) |
getRelationships, getSupportedPropertyDescriptors, getTransitUrl, handleCouchbaseException, init, openBucket
onTrigger
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
protected void addSupportedProperties(java.util.List<PropertyDescriptor> descriptors)
AbstractCouchbaseProcessor
addSupportedProperties
in class AbstractCouchbaseProcessor
descriptors
- add properties to this listprotected void addSupportedRelationships(java.util.Set<Relationship> relationships)
AbstractCouchbaseProcessor
addSupportedRelationships
in class AbstractCouchbaseProcessor
relationships
- add relationships to this listpublic void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger
in class AbstractProcessor
ProcessException