Class PutCouchbaseKey
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.PutCouchbaseKey
- All Implemented Interfaces:
ConfigurableComponent,Processor
@Tags({"nosql","couchbase","database","put"})
@CapabilityDescription("Put a document to Couchbase Server via Key/Value access.")
@InputRequirement(INPUT_REQUIRED)
@ReadsAttributes(@ReadsAttribute(attribute="uuid",description="Used as a document id if \'Document Id\' is not specified"))
@WritesAttribute(attribute="couchbase.cluster",description="Cluster where the document was stored.") @WritesAttribute(attribute="couchbase.bucket",description="Bucket where the document was stored.") @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 PutCouchbaseKey
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.voidonTrigger(ProcessContext context, ProcessSession session) Methods inherited from class org.apache.nifi.processors.couchbase.AbstractCouchbaseProcessor
filterRelationships, 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, onPropertyModified, 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, onPropertyModified, validateMethods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateProperties, migrateRelationships
-
Field Details
-
PERSIST_TO
-
REPLICATE_TO
-
-
Constructor Details
-
PutCouchbaseKey
public PutCouchbaseKey()
-
-
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
-
onTrigger
- Specified by:
onTriggerin classAbstractProcessor- Throws:
ProcessException
-