Package gudusoft.gsqlparser.dlineage
Class DataFlowAnalyzer
Object
gudusoft.gsqlparser.dlineage.DataFlowAnalyzer
- All Implemented Interfaces:
IDataFlowAnalyzer
-
Constructor Summary
ConstructorsConstructorDescriptionDataFlowAnalyzer(SqlInfo[] sqlInfos, Option option) DataFlowAnalyzer(SqlInfo[] sqlInfos, EDbVendor dbVendor, boolean simpleOutput) DataFlowAnalyzer(File[] sqlFiles, Option option) DataFlowAnalyzer(File[] sqlFiles, EDbVendor dbVendor, boolean simpleOutput) DataFlowAnalyzer(File sqlFile, Option option) DataFlowAnalyzer(File sqlFile, EDbVendor dbVendor, boolean simpleOutput) DataFlowAnalyzer(String[] sqlContents, Option option) DataFlowAnalyzer(String[] sqlContents, EDbVendor dbVendor, boolean simpleOutput) DataFlowAnalyzer(String[] sqlContents, EDbVendor dbVendor, boolean simpleOutput, String defaultServer, String defaultDatabase, String defaltSchema) DataFlowAnalyzer(String sqlContent, Option option) DataFlowAnalyzer(String sqlContent, EDbVendor dbVendor, boolean simpleOutput) DataFlowAnalyzer(String sqlContent, EDbVendor dbVendor, boolean simpleOutput, String defaultServer, String defaultDatabase, String defaltSchema) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanalyzeResultColumnExpressionRelation(Object resultColumn, TExpression expression) protected voidanalyzeTableSubquery(TTable table) convertSQL(EDbVendor vendor, String json) voiddispose()protected voidflattenStructColumns(boolean hasDefinition, Table tableModel, TColumnDefinition column, Stack<TColumnDefinition> columnPaths, int index) generateDataFlow(boolean withExtraInfo) protected StringgetIdentifiedFunctionName(Function function) static StringgetSelectedDbObjectInfo(Coordinate start, Coordinate end) Deprecated.please use SqlInfoHelper.getSelectedDbObjectInfogetSimpleDataflow(dataflow instance, boolean simpleOutput) getSimpleDataflow(dataflow instance, boolean simpleOutput, List<String> types) static DataflowgetSqlflowJSONModel(dataflow dataflow) Deprecated.static DataflowgetSqlflowJSONModel(dataflow dataflow, EDbVendor vendor) static DataflowgetSqlflowJSONModel(EDbVendor vendor, dataflow dataflow, boolean normalizeIdentifier) static StringbooleanbooleanisBuiltInFunctionName(TObjectName object) booleanisBuiltInFunctionName(String functionName) booleanisConstant(TObjectName object) booleanbooleanbooleanbooleanisKeyword(TObjectName object) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanprotected booleanisStructColumn(TObjectName columnName) protected booleanbooleanbooleanstatic voidstatic dataflowmergeTables(dataflow dataflow, Long startId) static dataflowmergeTables(dataflow dataflow, Long startId, Option option) voidsetHandleListener(DataFlowHandleListener listener) voidsetIgnoreCoordinate(boolean ignoreCoordinate) voidsetIgnoreRecordSet(boolean ignoreRecordSet) voidsetIgnoreTemporaryTable(boolean ignoreTemporaryTable) voidsetLinkOrphanColumnToFirstTable(boolean linkOrphanColumnToFirstTable) voidvoidsetShowCallRelation(boolean showCallRelation) voidsetShowConstantTable(boolean showConstantTable) voidsetShowCountTableColumn(boolean showCountTableColumn) voidsetShowImplicitSchema(boolean showImplicitSchema) voidsetShowJoin(boolean showJoin) voidsetSimpleShowFunction(boolean simpleShowFunction) voidsetSimpleShowTopSelectResultSet(boolean simpleShowTopSelectResultSet) voidvoidsetTextFormat(boolean textFormat) voidsetTransform(boolean transform) voidsetTransformCoordinate(boolean transformCoordinate)
-
Constructor Details
-
DataFlowAnalyzer
-
DataFlowAnalyzer
-
DataFlowAnalyzer
-
DataFlowAnalyzer
-
DataFlowAnalyzer
-
DataFlowAnalyzer
-
DataFlowAnalyzer
-
DataFlowAnalyzer
-
DataFlowAnalyzer
-
DataFlowAnalyzer
-
DataFlowAnalyzer
-
DataFlowAnalyzer
-
-
Method Details
-
isIgnoreRecordSet
- Specified by:
isIgnoreRecordSetin interfaceIDataFlowAnalyzer
-
setIgnoreRecordSet
- Specified by:
setIgnoreRecordSetin interfaceIDataFlowAnalyzer
-
isSimpleShowTopSelectResultSet
- Specified by:
isSimpleShowTopSelectResultSetin interfaceIDataFlowAnalyzer
-
setSimpleShowTopSelectResultSet
- Specified by:
setSimpleShowTopSelectResultSetin interfaceIDataFlowAnalyzer
-
isSimpleShowFunction
- Specified by:
isSimpleShowFunctionin interfaceIDataFlowAnalyzer
-
setSimpleShowFunction
- Specified by:
setSimpleShowFunctionin interfaceIDataFlowAnalyzer
-
isShowJoin
- Specified by:
isShowJoinin interfaceIDataFlowAnalyzer
-
setShowJoin
- Specified by:
setShowJoinin interfaceIDataFlowAnalyzer
-
setShowCallRelation
-
isShowCallRelation
-
isShowImplicitSchema
- Specified by:
isShowImplicitSchemain interfaceIDataFlowAnalyzer
-
setShowImplicitSchema
- Specified by:
setShowImplicitSchemain interfaceIDataFlowAnalyzer
-
isShowConstantTable
- Specified by:
isShowConstantTablein interfaceIDataFlowAnalyzer
-
setShowConstantTable
- Specified by:
setShowConstantTablein interfaceIDataFlowAnalyzer
-
isShowCountTableColumn
- Specified by:
isShowCountTableColumnin interfaceIDataFlowAnalyzer
-
setShowCountTableColumn
- Specified by:
setShowCountTableColumnin interfaceIDataFlowAnalyzer
-
isTransform
- Specified by:
isTransformin interfaceIDataFlowAnalyzer
-
setTransform
- Specified by:
setTransformin interfaceIDataFlowAnalyzer
-
isTransformCoordinate
- Specified by:
isTransformCoordinatein interfaceIDataFlowAnalyzer
-
setTransformCoordinate
- Specified by:
setTransformCoordinatein interfaceIDataFlowAnalyzer
-
isLinkOrphanColumnToFirstTable
- Specified by:
isLinkOrphanColumnToFirstTablein interfaceIDataFlowAnalyzer
-
setLinkOrphanColumnToFirstTable
- Specified by:
setLinkOrphanColumnToFirstTablein interfaceIDataFlowAnalyzer
-
isIgnoreTemporaryTable
-
setIgnoreTemporaryTable
-
isIgnoreCoordinate
- Specified by:
isIgnoreCoordinatein interfaceIDataFlowAnalyzer
-
setIgnoreCoordinate
- Specified by:
setIgnoreCoordinatein interfaceIDataFlowAnalyzer
-
setHandleListener
- Specified by:
setHandleListenerin interfaceIDataFlowAnalyzer
-
setSqlEnv
- Specified by:
setSqlEnvin interfaceIDataFlowAnalyzer
-
setOption
- Specified by:
setOptionin interfaceIDataFlowAnalyzer
-
getOption
- Specified by:
getOptionin interfaceIDataFlowAnalyzer
-
chechSyntax
-
generateDataFlow
- Specified by:
generateDataFlowin interfaceIDataFlowAnalyzer
-
generateDataFlow
- Specified by:
generateDataFlowin interfaceIDataFlowAnalyzer
-
generateSqlInfos
- Specified by:
generateSqlInfosin interfaceIDataFlowAnalyzer
-
getSqlInfos
- Specified by:
getSqlInfosin interfaceIDataFlowAnalyzer
-
getHashSQLMap
- Specified by:
getHashSQLMapin interfaceIDataFlowAnalyzer
-
getDynamicSQLMap
-
getSelectedDbObjectInfo
Deprecated.please use SqlInfoHelper.getSelectedDbObjectInfo- Specified by:
getSelectedDbObjectInfoin interfaceIDataFlowAnalyzer
-
mergeTables
-
mergeTables
-
getDataFlow
- Specified by:
getDataFlowin interfaceIDataFlowAnalyzer
-
getSimpleDataflow
- Throws:
Exception
-
getSimpleDataflow
public dataflow getSimpleDataflow(dataflow instance, boolean simpleOutput, List<String> types) throws Exception - Throws:
Exception
-
analyzeResultColumnExpressionRelation
-
flattenStructColumns
protected void flattenStructColumns(boolean hasDefinition, Table tableModel, TColumnDefinition column, Stack<TColumnDefinition> columnPaths, int index) -
isTopResultSet
-
analyzeTableSubquery
-
isStructColumn
-
getIdentifiedFunctionName
-
dispose
- Specified by:
disposein interfaceIDataFlowAnalyzer
-
getSqlflowJSONModel
Deprecated. -
getSqlflowJSONModel
-
getSqlflowJSONModel
public static Dataflow getSqlflowJSONModel(EDbVendor vendor, dataflow dataflow, boolean normalizeIdentifier) -
getVersion
-
getReleaseDate
-
main
-
getErrorMessages
- Specified by:
getErrorMessagesin interfaceIDataFlowAnalyzer
-
traceView
-
convertSQL
-
setTextFormat
-
isBuiltInFunctionName
-
isBuiltInFunctionName
-
isKeyword
-
isKeyword
-
isAggregateFunction
-
isConstant
-