public abstract class AbstractExecuteSQL extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
AUTO_COMMIT |
static PropertyDescriptor |
DBCP_SERVICE |
protected DBCPService |
dbcpService |
static PropertyDescriptor |
FETCH_SIZE |
static String |
FRAGMENT_COUNT |
static String |
FRAGMENT_ID |
static String |
FRAGMENT_INDEX |
static String |
INPUT_FLOWFILE_UUID |
static PropertyDescriptor |
MAX_ROWS_PER_FLOW_FILE |
static PropertyDescriptor |
OUTPUT_BATCH_SIZE |
protected List<PropertyDescriptor> |
propDescriptors |
static PropertyDescriptor |
QUERY_TIMEOUT |
static Relationship |
REL_FAILURE |
static Relationship |
REL_SUCCESS |
protected Set<Relationship> |
relationships |
static String |
RESULT_ERROR_MESSAGE |
static String |
RESULT_QUERY_DURATION |
static String |
RESULT_QUERY_EXECUTION_TIME |
static String |
RESULT_QUERY_FETCH_TIME |
static String |
RESULT_ROW_COUNT |
static String |
RESULTSET_INDEX |
static PropertyDescriptor |
SQL_POST_QUERY |
static PropertyDescriptor |
SQL_PRE_QUERY |
static PropertyDescriptor |
SQL_SELECT_QUERY |
| Constructor and Description |
|---|
AbstractExecuteSQL() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract SqlWriter |
configureSqlWriter(ProcessSession session,
ProcessContext context,
FlowFile fileToProcess) |
protected org.apache.commons.lang3.tuple.Pair<String,SQLException> |
executeConfigStatements(Connection con,
List<String> configQueries) |
protected List<String> |
getQueries(String value) |
Set<Relationship> |
getRelationships() |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
void |
setup(ProcessContext context) |
onTriggergetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTruecustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final String RESULT_ROW_COUNT
public static final String RESULT_QUERY_DURATION
public static final String RESULT_QUERY_EXECUTION_TIME
public static final String RESULT_QUERY_FETCH_TIME
public static final String RESULTSET_INDEX
public static final String RESULT_ERROR_MESSAGE
public static final String INPUT_FLOWFILE_UUID
public static final String FRAGMENT_ID
public static final String FRAGMENT_INDEX
public static final String FRAGMENT_COUNT
public static final Relationship REL_SUCCESS
public static final Relationship REL_FAILURE
protected Set<Relationship> relationships
public static final PropertyDescriptor DBCP_SERVICE
public static final PropertyDescriptor SQL_PRE_QUERY
public static final PropertyDescriptor SQL_SELECT_QUERY
public static final PropertyDescriptor SQL_POST_QUERY
public static final PropertyDescriptor QUERY_TIMEOUT
public static final PropertyDescriptor MAX_ROWS_PER_FLOW_FILE
public static final PropertyDescriptor OUTPUT_BATCH_SIZE
public static final PropertyDescriptor FETCH_SIZE
public static final PropertyDescriptor AUTO_COMMIT
protected List<PropertyDescriptor> propDescriptors
protected DBCPService dbcpService
public Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponent@OnScheduled public void setup(ProcessContext context)
public void onTrigger(ProcessContext context, ProcessSession session) throws ProcessException
onTrigger in class AbstractProcessorProcessExceptionprotected org.apache.commons.lang3.tuple.Pair<String,SQLException> executeConfigStatements(Connection con, List<String> configQueries)
protected abstract SqlWriter configureSqlWriter(ProcessSession session, ProcessContext context, FlowFile fileToProcess)
Copyright © 2023 Apache NiFi Project. All rights reserved.