use of com.alibaba.otter.node.etl.common.db.dialect.oracle.OracleDialect in project otter by alibaba.
the class OperationInterceptorFactory method getIntercetptor.
private LoadInterceptor[] getIntercetptor(DbLoadContext context, List<EventData> currentData) {
if (currentData == null || currentData.size() == 0) {
return empty;
}
DataMedia dataMedia = ConfigHelper.findDataMedia(context.getPipeline(), currentData.get(0).getTableId());
DbDialect dbDialect = dbDialectFactory.getDbDialect(context.getIdentity().getPipelineId(), (DbMediaSource) dataMedia.getSource());
if (dbDialect instanceof MysqlDialect) {
return mysqlInterceptors;
} else if (dbDialect instanceof OracleDialect) {
return oracleInterceptors;
} else {
return empty;
}
}
Aggregations