@Tags(value={"lookup","enrich","couchbase"}) @CapabilityDescription(value="Lookup a record from Couchbase Server associated with the specified key. The coordinates that are passed to the lookup must contain the key \'key\'.") public class CouchbaseRecordLookupService extends AbstractCouchbaseLookupService implements RecordLookupService
| Modifier and Type | Field and Description |
|---|---|
private DocumentType |
documentType |
private RecordReaderFactory |
readerFactory |
private static PropertyDescriptor |
RECORD_READER |
bucketName, couchbaseClusterService, KEY, properties, REQUIRED_KEYS| Constructor and Description |
|---|
CouchbaseRecordLookupService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addProperties(List<PropertyDescriptor> properties) |
Optional<Record> |
lookup(Map<String,Object> coordinates) |
void |
onEnabled(ConfigurationContext context) |
getRequiredKeys, getSupportedPropertyDescriptors, initabstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, initialize, isEnabledcustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetValueTypegetRequiredKeys, lookupinitialize, isStatefulgetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate volatile RecordReaderFactory readerFactory
private volatile DocumentType documentType
private static final PropertyDescriptor RECORD_READER
protected void addProperties(List<PropertyDescriptor> properties)
addProperties in class AbstractCouchbaseLookupService@OnEnabled public void onEnabled(ConfigurationContext context) throws InitializationException
onEnabled in class AbstractCouchbaseLookupServiceInitializationExceptionpublic Optional<Record> lookup(Map<String,Object> coordinates) throws LookupFailureException
lookup in interface LookupService<Record>LookupFailureExceptionCopyright © 2022 Apache NiFi Project. All rights reserved.