Class ColumnTableAnalyzer
java.lang.Object
org.evomaster.client.java.sql.internal.ColumnTableAnalyzer
Created by arcuri82 on 24-Apr-19.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SqlTableIdgetDeletedTable(String delete) static Map.Entry<SqlTableId,Set<SqlColumnId>> getInsertedDataFields(String insert) static Map<SqlTableId,Set<SqlColumnId>> getSelectReadDataFields(String select) Given a SELECT, check what it returns is based on (columns and tables).static Map.Entry<SqlTableId,Set<SqlColumnId>> getUpdatedDataFields(String update)
-
Constructor Details
-
ColumnTableAnalyzer
public ColumnTableAnalyzer()
-
-
Method Details
-
getDeletedTable
-
getInsertedDataFields
-
getUpdatedDataFields
-
getSelectReadDataFields
Given a SELECT, check what it returns is based on (columns and tables). Something like "select x from Foo" would give info on "Foo->{x}". However, at times, what is returned is not directly the content of a column, but rather some computations on it. For example, in "select avg(x) from Foo", we would still be just interested in the info that the data in "Foo->{x}" was used to compute the result.- Parameters:
select- SQL select command- Returns:
- a map from table_names to column_names
-