Repository navigation
feat(connector): the mapping connector describes a catalog of the rolap mapping - #210
Merged
Merged
Conversation
…ap mapping The new module connector/mapping turns an EMF catalog of the rolap mapping into a catalog description: MappingConnector.describe gives the CatalogDef together with its relational half (RelationalHalf) -- schemas, tables, columns, joins, inline tables, SQL selects, aggregation and writeback tables, database grants -- with one description object per mapping object. Roles, parameters, drill-through actions and formatters named by class are translated; what the description has no place for, such as a member reader of its own, is refused by name. A hierarchy without a name of its own shows under the name of each usage, as the relational engine names it. A conformance test gives every class of the mapping model a verdict. Nothing in rolap-core reads the description yet. Signed-off-by: Stefan Bischof <stbischof@bipolis.org>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One commit, a new module
connector/mapping. It turns an EMF catalog of the rolap mapping into the OLAP catalogdescription of eclipse-daanse/org.eclipse.daanse.olap#199. Nothing in rolap-core reads the description yet; that
follows in the next commits.
Two halves.
MappingConnector.describegives theCatalogDef: cubes, dimensions, hierarchies, levels, measures,calculated members, named sets, KPIs, roles and parameters, built through the description's builders.
RelationalHalfgives schemas, tables, columns, joins, inline tables, SQL selects, aggregation and writeback tables and database grants
as the description's own types, one description object per mapping object. EMF and CWM stay at this seam.
What is translated, and how. Roles, parameters, drill-through actions and formatters named by class are
translated. The description's validator checks the result, so a catalog it cannot carry fails with its problems by
path. What the description has no form for yet, such as a member reader of its own, is refused by name. Where the
mapping allows more than the description, the connector reads it as the relational engine does: a dimension used twice
under one name keeps its first usage; a hierarchy without a name of its own shows under the name of each usage; a
mapping group with several distinct counts opens one group per distinct count over the same facts; a numeric standard
property of a calculated member (SOLVE_ORDER, MEMBER_ORDINAL) stays a number.
Tests. A conformance test gives every class of the mapping model a verdict, so a class the mapping gains fails until
the connector says what it makes of it. Further tests cover the roles on their own, duplicate usages, distinct counts and
the properties of calculated members.