@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.") @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.") @SystemResourceConsideration(resource=MEMORY) public class GetCouchbaseKey extends AbstractCouchbaseProcessor
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
PUT_VALUE_TO_ATTRIBUTE |
private boolean |
putToAttribute |
DOC_ID, REL_FAILURE, REL_ORIGINAL, REL_RETRY, REL_SUCCESS| Constructor and Description |
|---|
GetCouchbaseKey() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSupportedProperties(List<PropertyDescriptor> descriptors)
Add processor specific properties.
|
protected void |
addSupportedRelationships(Set<Relationship> relationships)
Add processor specific relationships.
|
protected Set<Relationship> |
filterRelationships(Set<Relationship> rels) |
void |
onPropertyModified(PropertyDescriptor descriptor,
String oldValue,
String newValue) |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
getRelationships, getSupportedPropertyDescriptors, getTransitUrl, handleCouchbaseException, init, openBucketonTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, validatepublic static final PropertyDescriptor PUT_VALUE_TO_ATTRIBUTE
private volatile boolean putToAttribute
protected void addSupportedProperties(List<PropertyDescriptor> descriptors)
AbstractCouchbaseProcessoraddSupportedProperties in class AbstractCouchbaseProcessordescriptors - add properties to this listprotected void addSupportedRelationships(Set<Relationship> relationships)
AbstractCouchbaseProcessoraddSupportedRelationships in class AbstractCouchbaseProcessorrelationships - add relationships to this listprotected Set<Relationship> filterRelationships(Set<Relationship> rels)
filterRelationships in class AbstractCouchbaseProcessorpublic void onPropertyModified(PropertyDescriptor descriptor, String oldValue, String newValue)
onPropertyModified in interface ConfigurableComponentonPropertyModified in class AbstractConfigurableComponentpublic void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger in class AbstractProcessorProcessExceptionCopyright © 2022 Apache NiFi Project. All rights reserved.