@InputRequirement(value=INPUT_REQUIRED) @EventDriven @Tags(value={"rethinkdb","get","read","fetch"}) @CapabilityDescription(value="Processor to get a JSON document from RethinkDB (https://www.rethinkdb.com/) using the document id. The FlowFile will contain the retrieved document") @WritesAttributes(value=@WritesAttribute(attribute="rethinkdb.error.message",description="RethinkDB error message")) @SeeAlso(value={PutRethinkDB.class,DeleteRethinkDB.class}) public class GetRethinkDB extends AbstractRethinkDBProcessor
| Modifier and Type | Field and Description |
|---|---|
protected com.google.gson.Gson |
gson |
private static List<PropertyDescriptor> |
propertyDescriptors |
protected static PropertyDescriptor |
READ_MODE |
protected String |
READ_MODE_KEY |
static AllowableValue |
READ_MODE_MAJORITY |
static AllowableValue |
READ_MODE_OUTDATED |
static AllowableValue |
READ_MODE_SINGLE |
private static Set<Relationship> |
relationships |
CHARSET, databaseName, DB_HOST, DB_NAME, DB_PORT, DOCUMENT_ID_EMPTY_MESSAGE, DURABILITY, DURABILITY_HARD, DURABILITY_OPTION_KEY, DURABILITY_SOFT, hostname, MAX_DOCUMENTS_SIZE, maxDocumentsSize, password, PASSWORD, port, REL_FAILURE, REL_NOT_FOUND, REL_SUCCESS, RESULT_DELETED_KEY, RESULT_ERROR_KEY, RESULT_FIRST_ERROR_KEY, RESULT_GENERATED_KEYS_KEY, RESULT_INSERTED_KEY, RESULT_REPLACED_KEY, RESULT_SKIPPED_KEY, RESULT_UNCHANGED_KEY, RESULT_WARNINGS_KEY, RETHINKDB_DOCUMENT_ID, RETHINKDB_ERROR_MESSAGE, rethinkDbConnection, TABLE_NAME, tableName, username, USERNAME| Constructor and Description |
|---|
GetRethinkDB() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Map<String,Object> |
getDocument(String id,
String readMode) |
Set<Relationship> |
getRelationships() |
List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onScheduled(ProcessContext context) |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
getRdbTable, getRethinkDB, makeConnectiononTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static AllowableValue READ_MODE_SINGLE
public static AllowableValue READ_MODE_MAJORITY
public static AllowableValue READ_MODE_OUTDATED
protected static final PropertyDescriptor READ_MODE
protected String READ_MODE_KEY
private static final Set<Relationship> relationships
private static final List<PropertyDescriptor> propertyDescriptors
protected com.google.gson.Gson gson
public Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorpublic final List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponent@OnScheduled public void onScheduled(ProcessContext context)
onScheduled in class AbstractRethinkDBProcessorpublic void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger in class AbstractProcessorProcessException@OnStopped public void close()
close in class AbstractRethinkDBProcessorCopyright © 2017 Apache NiFi Project. All rights reserved.