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 |
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 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() |
customValidate, getDefaultMaxValueProperties, getLiteralByType, getMaxValueFromRow, getStateKey, getWrappedQuery, setup
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue
equals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public 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 Set<Relationship> getRelationships()
getRelationships
in interface Processor
getRelationships
in class AbstractSessionFactoryProcessor
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
getSupportedDynamicPropertyDescriptor
in class AbstractConfigurableComponent
@OnScheduled public void setup(ProcessContext context)
setup
in class AbstractDatabaseFetchProcessor
@OnStopped public void stop()
public void onTrigger(ProcessContext context, ProcessSessionFactory sessionFactory) throws ProcessException
ProcessException
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)
protected abstract SqlWriter configureSqlWriter(ProcessSession session, ProcessContext context)
Copyright © 2020 Apache NiFi Project. All rights reserved.