Class GetCouchbaseKey
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.couchbase.AbstractCouchbaseProcessor
org.apache.nifi.processors.couchbase.GetCouchbaseKey
- All Implemented Interfaces:
ConfigurableComponent,Processor
@Tags({"nosql","couchbase","database","get"})
@InputRequirement(INPUT_REQUIRED)
@CapabilityDescription("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
-
Field Summary
FieldsFields inherited from class org.apache.nifi.processors.couchbase.AbstractCouchbaseProcessor
DOC_ID, REL_FAILURE, REL_ORIGINAL, REL_RETRY, REL_SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSupportedProperties(List<PropertyDescriptor> descriptors) Add processor specific properties.protected voidaddSupportedRelationships(Set<Relationship> relationships) Add processor specific relationships.protected Set<Relationship> filterRelationships(Set<Relationship> rels) voidonPropertyModified(PropertyDescriptor descriptor, String oldValue, String newValue) voidonTrigger(ProcessContext context, ProcessSession session) Methods inherited from class org.apache.nifi.processors.couchbase.AbstractCouchbaseProcessor
getRelationships, getSupportedPropertyDescriptors, getTransitUrl, handleCouchbaseException, init, openBucketMethods inherited from class org.apache.nifi.processor.AbstractProcessor
onTriggerMethods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, validateMethods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateProperties, migrateRelationships
-
Field Details
-
PUT_VALUE_TO_ATTRIBUTE
-
putToAttribute
private volatile boolean putToAttribute
-
-
Constructor Details
-
GetCouchbaseKey
public GetCouchbaseKey()
-
-
Method Details
-
addSupportedProperties
Description copied from class:AbstractCouchbaseProcessorAdd processor specific properties.- Overrides:
addSupportedPropertiesin classAbstractCouchbaseProcessor- Parameters:
descriptors- add properties to this list
-
addSupportedRelationships
Description copied from class:AbstractCouchbaseProcessorAdd processor specific relationships.- Overrides:
addSupportedRelationshipsin classAbstractCouchbaseProcessor- Parameters:
relationships- add relationships to this list
-
filterRelationships
- Overrides:
filterRelationshipsin classAbstractCouchbaseProcessor
-
onPropertyModified
- Specified by:
onPropertyModifiedin interfaceConfigurableComponent- Overrides:
onPropertyModifiedin classAbstractConfigurableComponent
-
onTrigger
- Specified by:
onTriggerin classAbstractProcessor- Throws:
ProcessException
-