-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/436475_new_search_functionality' into 'develop'
feature/436475_new_search_functionality See merge request upm-inesdata/inesdata-connector!28
- Loading branch information
Showing
21 changed files
with
453 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 27 additions & 6 deletions
33
...i/src/main/java/org/upm/inesdata/countelements/controller/CountElementsApiController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...main/java/org/upm/inesdata/countelements/sql/index/schema/postgres/SqlDatasetMapping.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.upm.inesdata.countelements.sql.index.schema.postgres; | ||
|
||
import org.eclipse.edc.sql.translation.JsonFieldTranslator; | ||
import org.eclipse.edc.sql.translation.TranslationMapping; | ||
import org.upm.inesdata.countelements.sql.index.schema.CountElementsStatements; | ||
|
||
/** | ||
* Maps fields of a dataset of federated catalog onto the | ||
* corresponding SQL schema (= column names) enabling access through Postgres JSON operators where applicable | ||
*/ | ||
public class SqlDatasetMapping extends TranslationMapping { | ||
/** | ||
* Constructs a mapping for SQL dataset columns using the provided SQL federated catalog statements. | ||
* This mapping specifies how dataset fields correspond to database columns. | ||
* | ||
* @param statements the SQL statements specific to the federated catalog schema. | ||
*/ | ||
public SqlDatasetMapping(CountElementsStatements statements) { | ||
add("id", statements.getDatasetIdColumn()); | ||
add("offers", new JsonFieldTranslator(statements.getDatasetOffersColumn())); | ||
add("properties", new JsonFieldTranslator(statements.getDatasetPropertiesColumn())); | ||
add("catalog_id", statements.getDatasetCatalogIdColumn()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.