public abstract class AbstractQueryDatabaseTable extends AbstractDatabaseFetchProcessor
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractQueryDatabaseTable.MaxValueResultSetRowCollector |
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
FETCH_SIZE |
static PropertyDescriptor |
INITIAL_LOAD_STRATEGY |
static AllowableValue |
INITIAL_LOAD_STRATEGY_ALL_ROWS |
static AllowableValue |
INITIAL_LOAD_STRATEGY_NEW_ROWS |
static PropertyDescriptor |
MAX_FRAGMENTS |
static PropertyDescriptor |
MAX_ROWS_PER_FLOW_FILE |
static PropertyDescriptor |
OUTPUT_BATCH_SIZE |
static String |
RESULT_ROW_COUNT |
static String |
RESULT_TABLENAME |
static PropertyDescriptor |
TRANS_ISOLATION_LEVEL |
private static AllowableValue |
TRANSACTION_NONE |
private static AllowableValue |
TRANSACTION_READ_COMMITTED |
private static AllowableValue |
TRANSACTION_READ_UNCOMMITTED |
private static AllowableValue |
TRANSACTION_REPEATABLE_READ |
private static AllowableValue |
TRANSACTION_SERIALIZABLE |
COLUMN_NAMES, columnTypeMap, DB_TYPE, dbAdapters, DBCP_SERVICE, FRAGMENT_COUNT, FRAGMENT_ID, FRAGMENT_INDEX, INITIAL_MAX_VALUE_PROP_START, isDynamicMaxValues, isDynamicTableName, MAX_VALUE_COLUMN_NAMES, maxValueProperties, NAMESPACE_DELIMITER, propDescriptors, QUERY_TIMEOUT, REL_SUCCESS, relationships, setupComplete, SQL_QUERY, TABLE_NAME, WHERE_CLAUSE| Constructor and Description |
|---|
AbstractQueryDatabaseTable() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract SqlWriter |
configureSqlWriter(ProcessSession session,
ProcessContext context) |
protected Collection<ValidationResult> |
customValidate(ValidationContext validationContext) |
protected String |
getQuery(DatabaseAdapter dbAdapter,
String tableName,
String columnNames,
List<String> maxValColumnNames,
String customWhereClause,
Map<String,String> stateMap) |
protected String |
getQuery(DatabaseAdapter dbAdapter,
String tableName,
String sqlQuery,
String columnNames,
List<String> maxValColumnNames,
String customWhereClause,
Map<String,String> stateMap) |
Set<Relationship> |
getRelationships() |
protected PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onTrigger(ProcessContext context,
ProcessSessionFactory sessionFactory) |
void |
setup(ProcessContext context) |
void |
stop() |
getDefaultMaxValueProperties, getLiteralByType, getMaxValueFromRow, getStateKey, getWrappedQuery, setupgetControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueequals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitisStatefulgetPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final String RESULT_TABLENAME
public static final String RESULT_ROW_COUNT
private static AllowableValue TRANSACTION_READ_COMMITTED
private static AllowableValue TRANSACTION_READ_UNCOMMITTED
private static AllowableValue TRANSACTION_REPEATABLE_READ
private static AllowableValue TRANSACTION_NONE
private static AllowableValue TRANSACTION_SERIALIZABLE
public static final PropertyDescriptor FETCH_SIZE
public static final PropertyDescriptor MAX_ROWS_PER_FLOW_FILE
public static final PropertyDescriptor OUTPUT_BATCH_SIZE
public static final PropertyDescriptor MAX_FRAGMENTS
public static final PropertyDescriptor TRANS_ISOLATION_LEVEL
public static final AllowableValue INITIAL_LOAD_STRATEGY_ALL_ROWS
public static final AllowableValue INITIAL_LOAD_STRATEGY_NEW_ROWS
public static final PropertyDescriptor INITIAL_LOAD_STRATEGY
public Set<Relationship> getRelationships()
getRelationships in interface ProcessorgetRelationships in class AbstractSessionFactoryProcessorprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentprotected PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
getSupportedDynamicPropertyDescriptor in class AbstractConfigurableComponentprotected Collection<ValidationResult> customValidate(ValidationContext validationContext)
customValidate in class AbstractDatabaseFetchProcessor@OnScheduled public void setup(ProcessContext context)
setup in class AbstractDatabaseFetchProcessor@OnStopped public void stop()
public void onTrigger(ProcessContext context, ProcessSessionFactory sessionFactory) throws ProcessException
ProcessExceptionprotected String getQuery(DatabaseAdapter dbAdapter, String tableName, String columnNames, List<String> maxValColumnNames, String customWhereClause, Map<String,String> stateMap)
protected String getQuery(DatabaseAdapter dbAdapter, String tableName, String sqlQuery, String columnNames, List<String> maxValColumnNames, String customWhereClause, Map<String,String> stateMap)
protected abstract SqlWriter configureSqlWriter(ProcessSession session, ProcessContext context)
Copyright © 2023 Apache NiFi Project. All rights reserved.