public class ExtenededSearch
extends Controller
extendedSearch(String)
-API functionality.
More detail on the individual functions is provided below.Constructor and Description |
---|
ExtenededSearch() |
Modifier and Type | Method and Description |
---|---|
Result |
extendedSearch(java.lang.String repositoryName)
The extendedSearch provides the same functionality as
ExtendTable.search() . |
static java.util.Map<java.lang.String,java.lang.String> |
guessTypes(java.util.List<java.util.List<java.lang.String>> relation) |
void |
LogFoundTables(java.util.Map<java.lang.String,model.ExtendedTableInformation> tables,
java.lang.String logFilename,
GlobalVariables globalVariables) |
static void |
saveTableDataForFetching(model.ExtendedTableInformation table,
GlobalVariables globalVariables) |
public Result extendedSearch(java.lang.String repositoryName)
ExtendTable.search()
. It finds tables that can be used for extending the Query Table with an additional column.
It returns the names of matching tables, as well as the correspondences of the matching tables to the Query Table.yuv
Steps of execution:
LuceneQueries.searchForTables_InLucene(GlobalVariables)
LuceneQueries.addTheTableInformation_FromLucene(Map, GlobalVariables)
CorrespondenceManager.findIndirectMatches(Map, GlobalVariables)
LuceneQueries.addTheTableInformation_FromLucene(Map, GlobalVariables)
. For the schema-correspondences this could be direct or indirect correspondences.
CorrespondenceManager.GetCorrespondenceBasedInstanceMatches(Map, GlobalVariables)
. You have an indirect instance-correspondence for an entity, when this entity has a pre-calculated correspondence to the entity of another table, which has a direct correspondence to the QueryTable.
saveTableDataForFetching(ExtendedTableInformation, GlobalVariables)
. The json-file for a table will be directly returned when the DS4DM Frontend calls ExtendTable.fetchTable(String, String)
.
repositoryName
- the name of the repository used for the unconstrainedSearchrequest().body().asJson()
- the Json in the body of the http-post-request is also used as parameter. There is more info on it here.public void LogFoundTables(java.util.Map<java.lang.String,model.ExtendedTableInformation> tables, java.lang.String logFilename, GlobalVariables globalVariables)
public static void saveTableDataForFetching(model.ExtendedTableInformation table, GlobalVariables globalVariables)
public static java.util.Map<java.lang.String,java.lang.String> guessTypes(java.util.List<java.util.List<java.lang.String>> relation)