>, TupleIterable
-{
- /**
- * Returns a particular column of a particular row.
- *
- * Note that {@code list.get(row, column)}
- * is equivalent to {@code list.slice(column).get(row)}
- * and {@code list.get(row).get(column)}
- * but is more efficient for most implementations of TupleList.
- *
- * @param slice Column ordinal
- * @param index Row ordinal
- * @return Member at given row and column
- */
- Member get(int slice, int index);
-
- /**
- * Returns a list of the members at a given column.
- *
- *
The list is modifiable if and only if this TupleList is modifiable.
- * Adding an element to a slice will create a tuple whose members in other
- * columns are null.
- * Removing an element from a slicer will remove a tuple.
- *
- * @param column Ordinal of the member in each tuple to project
- * @return List of members
- * @throws IllegalArgumentException if column is not less than arity
- */
- @Override
- List slice(int column);
-
- /**
- * Creates a copy of this list that has the same type and has a given
- * capacity.
- *
- * If capacity is negative, populates the list. A deep copy is made,
- * so that it the contents of the list are not affected to changes to any
- * backing collections.
- *
- * @param capacity Capacity
- * @return Copy of list, empty if capacity is non-negative
- */
- TupleList copyList(int capacity);
-
- void addTuple(Member... members);
-
- TupleList project(int[] destIndices);
-
- void addCurrent(TupleCursor tupleIter);
-
- // override, refining return type
- @Override
- TupleList subList(int fromIndex, int toIndex);
-
- TupleList withPositionCallback(PositionCallback positionCallback);
-
- /**
- * Fixes the tuples of this list, so that their contents will not change
- * even if elements of the list are reordered or removed. Returns this
- * list if possible.
- *
- * @return List whose tuples are invariant if the list is sorted or filtered
- */
- TupleList fix();
-
- interface PositionCallback {
- void onPosition(int index);
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/calc/todo/TupleListCalc.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/calc/todo/TupleListCalc.java
deleted file mode 100644
index 684b7cfa6e..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/calc/todo/TupleListCalc.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
-* Copyright (c) 2025 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*
-*/
-
-package org.eclipse.daanse.olap.api.calc.todo;
-
-import org.eclipse.daanse.olap.api.calc.Calc;
-
-public interface TupleListCalc extends TupleIteratorCalc, Calc {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/calc/todo/package-info.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/calc/todo/package-info.java
deleted file mode 100644
index a8d7eb9820..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/calc/todo/package-info.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2023 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-* Stefan Bischof (bipolis.org) - initial
-*/
-//TODO: RM EXPORT
-@org.osgi.annotation.bundle.Export
-@org.osgi.annotation.versioning.Version("0.0.1")
-package org.eclipse.daanse.olap.api.calc.todo;
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/CalculatedMember.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/CalculatedMember.java
deleted file mode 100644
index 7cc7df10f2..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/CalculatedMember.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2025 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena, Stefan Bischof - initial
- *
- */
-package org.eclipse.daanse.olap.api.element;
-
-import org.eclipse.daanse.olap.api.query.component.Formula;
-
-public interface CalculatedMember extends KeyMember{
-
- Formula getFormula();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Catalog.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Catalog.java
deleted file mode 100644
index c08feac533..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Catalog.java
+++ /dev/null
@@ -1,125 +0,0 @@
- /*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (c) 2002-2017 Hitachi Vantara.. All rights reserved.
- *
- * Contributors:
- * SmartCity Jena - refactor, clean API
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-
-package org.eclipse.daanse.olap.api.element;
-
-import java.time.Instant;
-import java.util.List;
-import java.util.Optional;
-
-import org.eclipse.daanse.olap.api.CatalogReader;
-import org.eclipse.daanse.olap.api.Connection;
-import org.eclipse.daanse.olap.api.IdentifierSegment;
-import org.eclipse.daanse.olap.api.Parameter;
-import org.eclipse.daanse.olap.api.access.Role;
-
-/**
- * A Catalog is a collection of cubes, shared dimensions, and
- * roles.
- *
- * @author jhyde
- */
-public interface Catalog extends MetaElement {
-
- /**
- * Returns the name of this catalog.
- *
- * @post return != null
- * @post return.length() > 0
- */
- String getName();
-
- /**
- * Returns the description of this catalog.
- *
- * @return
- */
- String getDescription();
-
- /**
- * Returns the uniquely generated id of this catalog.
- */
- String getId();
-
- /**
- * Returns a list of all cubes in this catalog.
- */
- List getCubes();
-
- /**
- * Creates a {@link CatalogReader} without any access control.
- */
- CatalogReader getCatalogReaderWithDefaultRole();
-
- /**
- * Finds a role with a given name in the current catalog, or returns
- * null if no such role exists.
- */
- Role lookupRole(String role);
-
- /**
- * Returns this schema's parameters.
- */
- Parameter[] getParameters();
-
- /**
- * Returns when this schema was last loaded.
- *
- * @return Date and time when this schema was last loaded
- */
- Instant getCatalogLoadDate();
-
- /**
- * Returns a list of warnings and errors that occurred while loading this
- * schema.
- *
- * @return list of warnings
- */
- List getWarnings();
-
- /**
- * looks up the cubes of this catalog for a cube with the given name.
- * @param cubeName
- * @return Optional of Cube
- */
- Optional extends Cube> lookupCube(String cubeName);
-
- Role getDefaultRole();
-
- NamedSet getNamedSet(String name);
-
- List extends DatabaseSchema> getDatabaseSchemas();
-
- /**
- * Connection for purposes of parsing and validation. Careful! It won't have the
- * correct locale or access-control profile.
- */
- Connection getInternalConnection();
-
- NamedSet getNamedSet(IdentifierSegment segment);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Cube.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Cube.java
deleted file mode 100644
index 9460e3ef9f..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Cube.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 1999-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * Copyright (C) 2021 Sergei Semenkov
- * All Rights Reserved.
- *
- * Contributors:
- * SmartCity Jena - refactor, clean API
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.element;
-
-import java.util.List;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.Set;
-
-import org.eclipse.daanse.olap.api.CatalogReader;
-import org.eclipse.daanse.olap.api.DataTypeJdbc;
-import org.eclipse.daanse.olap.api.DrillThroughAction;
-import org.eclipse.daanse.olap.api.NameSegment;
-import org.eclipse.daanse.olap.api.access.Role;
-import org.eclipse.daanse.olap.api.query.component.Formula;
-import org.eclipse.daanse.olap.api.result.AllocationPolicy;
-
-/**
- * Cube.
- *
- * @author jhyde, 2 March, 1999
- */
-public interface Cube extends OlapElement, MetaElement {
-
- Catalog getCatalog();
-
- /**
- * Returns the dimensions of this cube.
- */
- List extends Dimension> getDimensions();
-
- /**
- * Returns the named sets of this cube.
- */
- NamedSet[] getNamedSets();
-
- List getMeasures();
-
- /**
- * Finds a hierarchy whose name (or unique name, if unique is true)
- * equals s.
- */
- Hierarchy lookupHierarchy(NameSegment s, boolean unique);
-
- /**
- * Returns Member[]. It builds Member[] by analyzing cellset, which gets created
- * by running mdx sQuery. query has to be in the format of
- * something like "[with calculated members] select *members* on columns from
- * this".
- */
- Member[] getMembersForQuery(String query, List calcMembers);
-
- /**
- * Returns a {@link CatalogReader} for which this cube is the context for lookup
- * up members. If role is null, the returned schema reader also
- * obeys the access-control profile of role.
- */
- CatalogReader getCatalogReader(Role role);
-
- /**
- * Finds out non joining dimensions for this cube.
- *
- * @param tuple array of members
- * @return Set of dimensions that do not exist (non joining) in this cube
- */
- Set nonJoiningDimensions(Member[] tuple);
-
- /**
- * Finds out non joining dimensions for this cube.
- *
- * @param otherDims Set of dimensions to be tested for existence in this cube
- * @return Set of dimensions that do not exist (non joining) in this cube
- */
- Set nonJoiningDimensions(Set otherDims);
-
- Member createCalculatedMember(Formula formula);
-
- void createNamedSet(Formula formula);
-
- DrillThroughAction getDefaultDrillThroughAction();
-
- List getDrillThroughActions();
-
- /**
- * Returns the members of a level, optionally including calculated members.
- */
- List getLevelMembers(Level level, boolean includeCalculated);
-
- /**
- * Returns the number of members in a level, returning an approximation if
- * acceptable.
- *
- * @param level Level
- * @param approximate Whether an approximation is acceptable
- * @param materialize Whether to go to disk if no approximation for the count is
- * available and the members are not in cache. If false,
- * returns {@link Integer#MIN_VALUE} if value is not in
- * cache.
- */
- int getLevelCardinality(Level level, boolean approximate, boolean materialize);
-
- List extends KPI> getKPIs();
-
- /**
- * Returns a list of all hierarchies in this cube, in order of dimension.
- *
- *
- * TODO: Make this method return RolapCubeHierarchy, when the measures hierarchy
- * is a RolapCubeHierarchy.
- *
- * @return List of hierarchies
- */
- List getHierarchies();
-
- void modifyFact(List>> sessionValues);
-
- void restoreFact();
-
- void commit(List>> sessionValues, String userId);
-
- List>> getAllocationValues(String tupleString, Object value,
- AllocationPolicy allocationPolicy);
-
- /**
- * Returns the time hierarchy for this cube. If there is no time hierarchy,
- * throws.
- */
- Hierarchy getTimeHierarchy(String name);
-
- boolean isLoadInProgress();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/DatabaseColumn.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/DatabaseColumn.java
deleted file mode 100644
index c6dbf1f733..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/DatabaseColumn.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
-* Copyright (c) 2025 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-* Stefan Bischof (bipolis.org) - initial
-*/
-package org.eclipse.daanse.olap.api.element;
-
-import org.eclipse.daanse.olap.api.DataTypeJdbc;
-
-public interface DatabaseColumn {
-
- String getName();
-
- DataTypeJdbc getType();
-
- Boolean getNullable();
-
- Integer getColumnSize();
-
- Integer getDecimalDigits();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/DatabaseSchema.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/DatabaseSchema.java
deleted file mode 100644
index 30cbff608a..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/DatabaseSchema.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
-* Copyright (c) 2025 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-* Stefan Bischof (bipolis.org) - initial
-*/
-package org.eclipse.daanse.olap.api.element;
-
-import java.util.List;
-
-public interface DatabaseSchema {
-
- List getDbTables();
-
- String getName();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/DatabaseTable.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/DatabaseTable.java
deleted file mode 100644
index 977a4fbbc4..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/DatabaseTable.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
-* Copyright (c) 2025 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-* Stefan Bischof (bipolis.org) - initial
-*/
-package org.eclipse.daanse.olap.api.element;
-
-import java.util.List;
-
-public interface DatabaseTable {
-
- String getName();
-
- List getDbColumns();
-
- String getDescription();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Dimension.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Dimension.java
deleted file mode 100644
index a14bd4c261..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Dimension.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 1999-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * Copyright (C) 2021 Sergei Semenkov
- * All Rights Reserved.
- *
- * Contributors:
- * SmartCity Jena - refactor, clean API
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-package org.eclipse.daanse.olap.api.element;
-
-import java.util.List;
-
-/**
- * A Dimension represents a dimension of a cube.
- *
- * @author jhyde, 1 March, 1999
- */
-public interface Dimension extends OlapElement, MetaElement {
- public static final String MEASURES_UNIQUE_NAME = "[Measures]";
- public static final String MEASURES_NAME = "Measures";
-
- /**
- * Returns an array of the hierarchies which belong to this dimension.
- */
- List extends Hierarchy> getHierarchies();
-
- /**
- * Returns whether this is the [Measures] dimension.
- */
- boolean isMeasures();
-
- /**
- * Returns the type of this dimension ({@link DimensionType#STANDARD_DIMENSION}
- * or {@link DimensionType#TIME_DIMENSION}
- */
- DimensionType getDimensionType();
-
- /**
- * Returns the schema this dimension belongs to.
- */
- Catalog getCatalog();
-
- Cube getCube();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/DimensionType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/DimensionType.java
deleted file mode 100644
index baccd6f33c..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/DimensionType.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2004-2005 Galt Johnson
- * Copyright (C) 2004-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-
-package org.eclipse.daanse.olap.api.element;
-
-/**
- * Enumerates the types of dimensions.
- *
- * @author Galt Johnson
- * @since 5 April, 2004
- */
-public enum DimensionType {
- /**
- * Indicates that the dimension is not related to time.
- */
- STANDARD_DIMENSION("StandardDimension"),
-
- /**
- * Indicates that a dimension is a time dimension.
- */
- TIME_DIMENSION("TimeDimension"),
-
- /**
- * Indicates the a dimension is the measures dimension.
- */
- MEASURES_DIMENSION("MeasuresDimension");
-
- private final String value;
-
- DimensionType(String v) {
- value = v;
- }
-
- public String getValue() {
- return value;
- }
-
- public static DimensionType fromValue(String v) {
- for (DimensionType c : DimensionType.values()) {
- if (c.value.equals(v)) {
- return c;
- }
- }
- throw new IllegalArgumentException(v);
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Hierarchy.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Hierarchy.java
deleted file mode 100644
index f64330d59c..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Hierarchy.java
+++ /dev/null
@@ -1,123 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 1999-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- * Contributors:
- * SmartCity Jena - refactor, clean API
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-
-package org.eclipse.daanse.olap.api.element;
-
-import java.util.List;
-
-import org.eclipse.daanse.olap.api.CatalogReader;
-import org.eclipse.daanse.olap.api.query.component.Formula;
-
-/**
- * A Hierarchy is a set of members, organized into levels.
- */
-public interface Hierarchy extends OlapElement, MetaElement {
- /**
- * Returns the dimension this hierarchy belongs to.
- */
- @Override
- Dimension getDimension();
-
- /**
- * Returns the levels in this hierarchy.
- *
- *
- * If a hierarchy is subject to access-control, some of the levels may not be
- * visible; use {@link CatalogReader#getHierarchyLevels} instead.
- *
- * @post return != null
- */
- List extends Level> getLevels();
-
- /**
- * Returns the default member of this hierarchy.
- *
- *
- * If a hierarchy is subject to access-control, the default member may not be
- * visible, so use {@link CatalogReader#getHierarchyDefaultMember}.
- *
- * @post return != null
- */
- Member getDefaultMember();
-
- /**
- * Returns the "All" member of this hierarchy.
- *
- * @post return != null
- */
- Member getAllMember();
-
- /**
- * Returns a special member representing the "null" value. This never occurs on
- * an axis, but may occur if functions such as Lead,
- * NextMember and ParentMember walk off the end of the
- * hierarchy.
- *
- * @post return != null
- */
- Member getNullMember();
-
- boolean hasAll();
-
- /**
- * Creates a member of this hierarchy. If this is the measures hierarchy, a
- * calculated member is created, and formula must not be null.
- */
- Member createMember(Member parent, Level level, String name, Formula formula);
-
- /**
- * Returns the unique name of this hierarchy, always including the dimension
- * name, e.g. "[Time].[Time]", regardless of whether
- * {@link SystemWideProperties#SsasCompatibleNaming} is enabled.
- *
- * @deprecated Will be removed in mondrian-4.0, when {@link #getUniqueName()}
- * will have this behavior.
- *
- * @return Unique name of hierarchy.
- */
- @Deprecated
- String getUniqueNameSsas();
-
- String getDisplayFolder();
-
- String origin();
-
- List getRootMembers();
-
- /**
- * Returns the ordinal of this hierarchy in its cube.
- *
- *
- * Temporarily defined against RolapHierarchy; will be moved to
- * RolapCubeHierarchy as soon as the measures hierarchy is a RolapCubeHierarchy.
- *
- * @return Ordinal of this hierarchy in its cube
- */
- int getOrdinalInCube();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/KPI.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/KPI.java
deleted file mode 100644
index 886721ab45..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/KPI.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
-* Copyright (c) 2025 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-* Stefan Bischof (bipolis.org) - initial
-*/
-package org.eclipse.daanse.olap.api.element;
-
-public interface KPI {
- String getName();
-
- String getDisplayFolder();
-
- String getCurrentTimeMember();
-
- String getTrend();
-
- String getWeight();
-
- String getTrendGraphic();
-
- String getStatusGraphic();
-
- KPI getParentKpi();
-
- String getValue();
-
- String getGoal();
-
- String getStatus();
-
- String getDescription();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/KeyMember.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/KeyMember.java
deleted file mode 100644
index 11a30bcdd9..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/KeyMember.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * Copyright (c) 2025 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- */
-package org.eclipse.daanse.olap.api.element;
-
-public interface KeyMember extends Member{
- Object getKey();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Level.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Level.java
deleted file mode 100644
index febaf3c8ea..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Level.java
+++ /dev/null
@@ -1,104 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 1999-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * Contributors:
- * SmartCity Jena - refactor, clean API
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-package org.eclipse.daanse.olap.api.element;
-
-import java.util.List;
-
-import org.eclipse.daanse.olap.api.CatalogReader;
-import org.eclipse.daanse.olap.api.SqlExpression;
-import org.eclipse.daanse.olap.api.formatter.MemberFormatter;
-
-/**
- * A Level is a group of {@link Member}s in a {@link Hierarchy},
- * all with the same attributes and at the same depth in the hierarchy.
- *
- * @author jhyde, 1 March, 1999
- */
-public interface Level extends OlapElement, MetaElement {
-
- /**
- * Returns the depth of this level.
- *
- *
- * Note #1: In an access-controlled context, the first visible level of a
- * hierarchy (as returned by {@link CatalogReader#getHierarchyLevels}) may not
- * have a depth of 0.
- *
- *
- *
- * Note #2: In a parent-child hierarchy, the depth of a member (as returned by
- * {@link CatalogReader#getMemberDepth}) may not be the same as the depth of its
- * level.
- */
- int getDepth();
-
- @Override
- Hierarchy getHierarchy();
-
- Level getChildLevel();
-
- Level getParentLevel();
-
- boolean isAll();
-
- boolean areMembersUnique();
-
- LevelType getLevelType();
-
- /** Returns properties defined against this level. */
- Property[] getProperties();
-
- /** Returns properties defined against this level and parent levels. */
- Property[] getInheritedProperties();
-
- /**
- * Returns the object that is used to format members of this level.
- */
- MemberFormatter getMemberFormatter();
-
- /**
- * Returns the approximate number of members in this level, or
- * {@link Integer#MIN_VALUE} if no approximation is known.
- */
- int getApproxRowCount();
-
- int getCardinality();
-
- List getMembers();
-
- boolean isUnique();
-
- SqlExpression getOrdinalExp();
-
- boolean isParentChild();
-
- boolean isParentAsLeafEnable();
-
- String getParentAsLeafNameFormat();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/LevelType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/LevelType.java
deleted file mode 100644
index d8471bf6b0..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/LevelType.java
+++ /dev/null
@@ -1,273 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2004-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
-*/
-
-package org.eclipse.daanse.olap.api.element;
-
-/**
- * Enumerates the types of levels.
- */
-public enum LevelType {
-
- /** Indicates that the level is not related to time. */
- REGULAR("Regular"),
-
- /**
- * Indicates that a level refers to years. It must be used in a dimension whose
- * type is {@link DimensionType#TIME_DIMENSION}.
- */
- TIME_YEARS("TimeYears"),
-
- /**
- * Indicates that a level refers to half years. It must be used in a dimension
- * whose type is {@link DimensionType#TIME_DIMENSION}.
- */
- TIME_HALF_YEARS("TimeHalfYears"),
-
- /**
- * Indicates that a level refers to quarters. It must be used in a dimension
- * whose type is {@link DimensionType#TIME_DIMENSION}.
- */
- TIME_QUARTERS("TimeQuarters"),
-
- /**
- * Indicates that a level refers to months. It must be used in a dimension whose
- * type is {@link DimensionType#TIME_DIMENSION}.
- */
- TIME_MONTHS("TimeMonths"),
-
- /**
- * Indicates that a level refers to weeks. It must be used in a dimension whose
- * type is {@link DimensionType#TIME_DIMENSION}.
- */
- TIME_WEEKS("TimeWeeks"),
-
- /**
- * Indicates that a level refers to days. It must be used in a dimension whose
- * type is {@link DimensionType#TIME_DIMENSION}.
- */
- TIME_DAYS("TimeDays"),
-
- /**
- * Indicates that a level refers to hours. It must be used in a dimension whose
- * type is {@link DimensionType#TIME_DIMENSION}.
- */
- TIME_HOURS("TimeHours"),
-
- /**
- * Indicates that a level refers to minutes. It must be used in a dimension
- * whose type is {@link DimensionType#TIME_DIMENSION}.
- */
- TIME_MINUTES("TimeMinutes"),
-
- /**
- * Indicates that a level refers to seconds. It must be used in a dimension
- * whose type is {@link DimensionType#TIME_DIMENSION}.
- */
- TIME_SECONDS("TimeSeconds"),
-
- /**
- * Indicates that a level is an unspecified time period. It must be used in a
- * dimension whose type is {@link DimensionType#TIME_DIMENSION}.
- */
- TIME_UNDEFINED("TimeUndefined"),
-
- /**
- * Indicates that a level holds the null member.
- */
- NULL("Null"),
-
- /**
- * Indicates that a level holds the geographical object Continent.
- */
- GEO_CONTINENT("GeographicContinent"),
-
- /**
- * Indicates that a level holds the geographical object Region.
- */
- GEO_REGION("GeographicRegion"),
-
- /**
- * Indicates that a level holds the geographical object Country.
- */
- GEO_COUNTRY("GeographicCountry"),
-
- /**
- * Indicates that a level holds the geographical objects State or Province.
- */
- GEO_STATE_OR_PROVINCE("GeographicProvince"),
-
- /**
- * Indicates that a level holds the geographical object County.
- */
- GEO_COUNTY("GeographicCounty"),
-
- /**
- * Indicates that a level holds the geographical object City.
- */
- GEO_CITY("GeographicCity"),
-
- /**
- * Indicates that a level holds the geographical object PostalCode.
- */
- GEO_POSTALCODE("GeographicPostalCode"),
-
- /**
- * Indicates that a level holds the geographical object Point.
- */
- GEO_POINT("GeographicPoint"),
-
- /**
- * Indicates that a level holds a OrganisationUnit.
- */
- ORG_UNIT("OrganisationUnit"),
-
- /**
- * Indicates that a level holds a Bom Resource.
- */
- BOM_RESOURCE("BomResource"),
-
- /**
- * Indicates that a level is a QUANTITATIVE.
- */
- QUANTITATIVE("Quantitative"),
-
- /**
- * Indicates that a level is a Account.
- */
- ACCOUNT("Account"),
-
- /**
- * Indicates that a level is a Customer.
- */
- CUSTOMER("Customer"),
-
- /**
- * Indicates that a level is a CustomerGroup.
- */
- CUSTOMER_GROUP("CustomerGroup"),
-
- /**
- * Indicates that a level is a CustomerGroup.
- */
- CUSTOMER_HOUSEHOLD("CustomerHouseHold"),
-
- /**
- * Indicates that a level is a Product.
- */
- PRODUCT("Product"),
-
- /**
- * Indicates that a level is a ProductGroup.
- */
- PRODUCT_GROUP("ProductGroup"),
-
- /**
- * Indicates that a level is a Scenario.
- */
- SCENARIO("Scenario"),
-
- /**
- * Indicates that a level is a Utility.
- */
- UTILITY("Utility"),
-
- /**
- * Indicates that a level is a Person.
- */
- PERSON("Person"),
-
- /**
- * Indicates that a level is a Company.
- */
- COMPANY("Company"),
-
- /**
- * Indicates that a level is a CurrencySource.
- */
- CURRENCY_SOURCE("CurrencySource"),
- /**
- * Indicates that a level is a CurrencyDestination.
- */
- CURRENCY_DESTINATION("CurrencyDestination"),
-
- /**
- * Indicates that a level is a Channel.
- */
- CHANNEL("Channel"),
-
- /**
- * Indicates that a level is a Representative.
- */
- REPRESENTATIVE("Representative"),
-
- /**
- * Indicates that a level is a Promotion.
- */
- PROMOTION("Promotion");
-
- private final String value;
-
- LevelType(String v) {
- value = v;
- }
-
- public String getValue() {
- return value;
- }
-
- public static LevelType fromValue(String v) {
- for (LevelType c : LevelType.values()) {
- if (c.value.equals(v)) {
- return c;
- }
- }
- return REGULAR;
-// throw new IllegalArgumentException(v);
- }
-
- /**
- * Returns whether this is a time level.
- *
- * @return Whether this is a time level.
- */
- public boolean isTime() {
- return switch (this) {
- case TIME_YEARS, //
- TIME_HALF_YEARS, //
- TIME_QUARTERS, //
- TIME_MONTHS, //
- TIME_WEEKS, //
- TIME_DAYS, //
- TIME_HOURS, //
- TIME_MINUTES, //
- TIME_SECONDS, //
- TIME_UNDEFINED ->
- true;
- default -> false;
- };
- }
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/LimitedMember.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/LimitedMember.java
deleted file mode 100644
index b8affc3e4a..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/LimitedMember.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-* Copyright (c) 2025 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-* Stefan Bischof (bipolis.org) - initial
-*/
-package org.eclipse.daanse.olap.api.element;
-
-import org.eclipse.daanse.olap.api.access.HierarchyAccess;
-
-public interface LimitedMember extends Member {
-
- Member getMember();
-
- HierarchyAccess getHierarchyAccess();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Measure.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Measure.java
deleted file mode 100644
index fd953e70b9..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Measure.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) 2025 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena, Stefan Bischof - initial
- *
- */
-package org.eclipse.daanse.olap.api.element;
-
-public interface Measure extends Member {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Member.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Member.java
deleted file mode 100644
index 6c06b8a8b1..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Member.java
+++ /dev/null
@@ -1,234 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 1999-2005 Julian Hyde
- * Copyright (C) 2005-2020 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * Contributors:
- * SmartCity Jena - refactor, clean API
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-
-package org.eclipse.daanse.olap.api.element;
-
-import java.util.List;
-
-import org.eclipse.daanse.olap.api.CatalogReader;
-import org.eclipse.daanse.olap.api.query.component.Expression;
-
-/**
- * A Member is a 'point' on a dimension of a cube. Examples are
- * [Time].[1997].[January],
- * [Customer].[All Customers],
- * [Customer].[USA].[CA],
- * [Measures].[Unit Sales].
- *
- * Every member belongs to a {@link Level} of a {@link Hierarchy}. Members
- * except the root member have a parent, and members not at the leaf level have one or more children.
- *
- *
Measures are a special kind of member. They belong to their own
- * dimension, [Measures].
- *
- *
There are also special members representing the 'All' value of a
- * hierarchy, the null value, and the error value.
- *
- *
Members can have member properties. Their {@link Level#getProperties}
- * defines which are allowed.
- *
- * @author jhyde, 2 March, 1999
- */
-public interface Member extends OlapElement, Comparable, MetaElement {
-
- /**
- * Returns this member's parent, or null (not the 'null member', as returned by {@link Hierarchy#getNullMember})
- * if it
- * has no parent.
- *
- *
In an access-control context, a member may have no visible
- * parents, so use {@link CatalogReader#getMemberParent}.
- */
- Member getParentMember();
-
- Level getLevel();
-
- @Override
-Hierarchy getHierarchy();
-
- /**
- * Returns name of parent member, or empty string (not null) if we are the root.
- */
- String getParentUniqueName();
-
- /**
- * Returns the type of member.
- */
- MemberType getMemberType();
-
- /**
- * @return True when the member is a leaf member, meaning it has no children
- */
- boolean isParentChildLeaf();
-
- /**
- * @return True when the member is part of a Parent-Child hierarchy and it is a physical member. In a Parent Child
- * Hierarchy without a closure table, each member needs to be treated as calculated. We need a way to distinguish
- * between true calculated members and physical members that exist in the source data
- */
- boolean isParentChildPhysicalMember();
-
- enum MemberType {
- UNKNOWN,
- REGULAR, // adMemberRegular
- ALL,
- MEASURE,
- FORMULA,
- /**
- * This member is its hierarchy's NULL member (such as is returned by
- * [Gender].[All Gender].PrevMember, for example).
- */
- NULL
- }
-
- /**
- * Only allowable if the member is part of the WITH clause of a query.
- */
- void setName( String name );
-
- /**
- * Returns whether this is the 'all' member.
- */
- boolean isAll();
-
- /**
- * Returns whether this is a member of the measures dimension.
- */
- boolean isMeasure();
-
- /**
- * Returns whether this is the 'null member'.
- */
- boolean isNull();
-
- /**
- * Returns whether member is equal to, a child, or a descendent of this Member.
- */
- boolean isChildOrEqualTo( Member member );
-
- /**
- * Returns whether this member is computed using either a with member clause in an mdx query or a
- * calculated member defined in cube.
- */
- boolean isCalculated();
-
- /**
- * Returns whether this member should be evaluated within the Evaluator.
- *
- *
Normally {@link #isCalculated} and {@link #isEvaluated} should return
- * the same value, but in situations where mondrian would like to treat the two concepts separately such in role based
- * security, these values may differ.
- *
- * @return true if evaluated
- */
- boolean isEvaluated();
-
- int getSolveOrder();
-
- Expression getExpression();
-
- /**
- * Returns a list of the ancestor members of this member.
- *
- * @deprecated Use {@link CatalogReader#getMemberAncestors(Member, java.util.List)}.
- */
- @Deprecated
-List getAncestorMembers();
-
- /**
- * Returns whether this member is computed from a {@code WITH MEMBER} clause in an MDX query.
- */
- boolean isCalculatedInQuery();
-
- /**
- * Returns the value of the property named propertyName. Name match is case-sensitive.
- */
- Object getPropertyValue( String propertyName );
-
- /**
- * Returns the value of the property named propertyName, matching according to the required
- * case-sensitivity.
- */
- Object getPropertyValue( String propertyName, boolean matchCase );
-
- /**
- * Returns the formatted value of the property named
- * propertyName.
- */
- String getPropertyFormattedValue( String propertyName );
-
- /**
- * Sets a property of this member to a given value.
- */
- void setProperty( String name, Object value );
-
- /**
- * Returns the definitions of the properties this member may have.
- */
- Property[] getProperties();
-
- /**
- * Returns the ordinal of the member.
- */
- int getOrdinal();
-
- /**
- * Returns the order key of the member (relative to its siblings); null if undefined or unavailable.
- */
- Comparable getOrderKey();
-
- /**
- * Returns whether this member is 'hidden', as per the rules which define a ragged hierarchy.
- */
- boolean isHidden();
-
- /**
- * returns the depth of this member, which is not the level's depth in case of parent child dimensions
- *
- * @return depth
- */
- int getDepth();
-
- /**
- * Returns the system-generated data member that is associated with a nonleaf member of a dimension.
- *
- * Returns this member if this member is a leaf member, or if the
- * nonleaf member does not have an associated data member.
- */
- Member getDataMember();
-
- /**
- * Returns true if this member is on the same hierarchy chain as otherMember.
- *
- * @param otherMember
- * @return
- */
- boolean isOnSameHierarchyChain( Member otherMember );
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/MetaData.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/MetaData.java
deleted file mode 100644
index 86d11affe9..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/MetaData.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
-* Copyright (c) 2025 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-* Stefan Bischof (bipolis.org) - initial
-*/
-package org.eclipse.daanse.olap.api.element;
-
-import java.util.Locale;
-import java.util.Optional;
-
-import org.eclipse.daanse.olap.api.element.OlapElement.LocalizedProperty;
-
-public interface MetaData {
-
- Optional getLocalized(LocalizedProperty prop, Locale locale);
-
- Object get(String key);
-
- Integer size();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/MetaElement.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/MetaElement.java
deleted file mode 100644
index cbf7a28d54..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/MetaElement.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
-* Copyright (c) 2022 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.element;
-
-public interface MetaElement {
- /**
- * Returns the {@link MetaData} of Element.
- *
- * @return {@link MetaData} with additional Metadata for the Element.
- */
- MetaData getMetaData();
-}
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/NamedSet.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/NamedSet.java
deleted file mode 100644
index 7b4721c8b4..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/NamedSet.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2000-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * Contributors:
- * SmartCity Jena - refactor, clean API
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-
-
-package org.eclipse.daanse.olap.api.element;
-
-import java.util.List;
-
-import org.eclipse.daanse.olap.api.Validator;
-import org.eclipse.daanse.olap.api.query.component.Expression;
-import org.eclipse.daanse.olap.api.type.Type;
-
-/**
- * A named set of members or tuples.
- *
- *
- * A set can be defined in a query, using a WITH SET clause, or in
- * a schema. Named sets in a schema can be defined against a particular cube or
- * virtual cube, or shared between all cubes.
- *
- *
- * @author jhyde
- * @since 6 August, 2001
- */
-public interface NamedSet extends OlapElement, MetaElement {
- /**
- * Sets the name of this named set.
- */
- void setName(String newName);
-
- /**
- * Returns the type of this named set.
- */
- Type getType();
-
- /**
- * Returns the expression used to derive this named set.
- */
- Expression getExp();
-
- NamedSet validate(Validator validator);
-
- /**
- * Returns a name for this set that is unique within the query.
- *
- *
- * This is necessary when there are several 'AS' expressions, or an 'AS'
- * expression overrides a named set defined using 'WITH MEMBER' clause or
- * against a cube.
- */
- String getNameUniqueWithinQuery();
-
- /**
- * Returns whether this named set is dynamic.
- *
- *
- * Evaluation rules:
- *
- * A dynamic set is evaluated each time it is used, and inherits the context
- * in which it is evaluated.
- * A static set is evaluated only on first use, in the base context of the
- * cube.
- *
- *
- * @return Whether this named set is dynamic
- */
- boolean isDynamic();
-
- List getHierarchies();
-
- String getDisplayFolder();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/OlapElement.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/OlapElement.java
deleted file mode 100644
index 0cb10efc66..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/OlapElement.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 1998-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * Contributors:
- * SmartCity Jena - refactor, clean API
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-package org.eclipse.daanse.olap.api.element;
-
-import java.util.Locale;
-
-import org.eclipse.daanse.olap.api.MatchType;
-import org.eclipse.daanse.olap.api.CatalogReader;
-import org.eclipse.daanse.olap.api.Segment;
-
-/**
- * An OlapElement is a catalog object (dimension, hierarchy, level,
- * member).
- *
- * @author jhyde, 21 January, 1999
- */
-public interface OlapElement {
- String getUniqueName();
-
- String getName();
-
- String getDescription();
-
- /**
- * Looks up a child element, returning null if it does not exist.
- */
- OlapElement lookupChild(CatalogReader schemaReader, Segment s, MatchType matchType);
-
- /**
- * Returns the name of this element qualified by its class, for example
- * "hierarchy 'Customers'".
- */
- String getQualifiedName();
-
- String getCaption();
-
- /**
- * Returns the value of a property (caption or description) of this element in
- * the given locale.
- *
- * @param locale Locale
- * @return Localized caption or description
- */
- String getLocalized(LocalizedProperty prop, Locale locale);
-
- Hierarchy getHierarchy();
-
- /**
- * Returns the dimension of a this expression, or null if no dimension is
- * defined. Applicable only to set expressions.
- *
- *
- * Example 1:
- *
- *
- * [Sales].children
- *
- *
- * has dimension [Sales].
- *
- *
- *
- * Example 2:
- *
- *
- * order(except([Promotion Media].[Media Type].members,
- * {[Promotion Media].[Media Type].[No Media]}),
- * [Measures].[Unit Sales], DESC)
- *
- *
- * has dimension [Promotion Media].
- *
- *
- *
- * Example 3:
- *
- *
- * CrossJoin([Product].[Product Department].members,
- * [Gender].members)
- *
- *
- * has no dimension (well, actually it is [Product] x [Gender],
- * but we can't represent that, so we return null);
- *
- */
- Dimension getDimension();
-
- /**
- * Returns whether this element is visible to end-users.
- *
- *
- * Visibility is a hint for client applications. An element's visibility does
- * not affect how it is treated when MDX queries are evaluated.
- *
- * @return Whether this element is visible
- */
- boolean isVisible();
-
- enum LocalizedProperty {
- CAPTION, DESCRIPTION
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/ParentChildMember.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/ParentChildMember.java
deleted file mode 100644
index 945f3732a5..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/ParentChildMember.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2025 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- */
-package org.eclipse.daanse.olap.api.element;
-
-public interface ParentChildMember extends KeyMember{
-
- Member createPseudoLeafMember(Member child, String name);
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/PhysicalCube.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/PhysicalCube.java
deleted file mode 100644
index 2fb579a039..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/PhysicalCube.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) 2025 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena, Stefan Bischof - initial
- *
- */
-package org.eclipse.daanse.olap.api.element;
-
-public interface PhysicalCube extends Cube {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Property.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Property.java
deleted file mode 100644
index 6d1ca32431..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/Property.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2001-2005 Julian Hyde
- * Copyright (C) 2005-2018 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * jhyde, 12 September, 2002
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2025 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.element;
-
-import org.eclipse.daanse.olap.api.formatter.MemberPropertyFormatter;
-
-public interface Property {
-
- /**
- * Returns the datatype of the property.
- */
- Datatype getType();
-
- MemberPropertyFormatter getFormatter();
-
- /**
- * Returns the caption of this property.
- */
- String getCaption();
-
- /**
- * Returns whether this property is for system use only.
- */
- boolean isInternal();
-
- /**
- * Returns whether this property is a standard member property.
- */
- boolean isMemberProperty();
-
- /**
- * Returns whether this property is a standard cell property.
- */
- boolean isCellProperty();
-
- String getName();
-
- String getDescription();
-
- public enum Datatype {
- TYPE_STRING(null), TYPE_NUMERIC(null), TYPE_INTEGER("INT"), TYPE_LONG("LONG"),
- TYPE_BOOLEAN(null), TYPE_DATE(null), TYPE_TIME(null), TYPE_TIMESTAMP(null), TYPE_OTHER(null);
-
- private String type;
-
- Datatype(String type) {
- this.type = type;
- }
-
- public String getInternalType() {
- return type;
- }
-
- public boolean isNumeric() {
- return this == TYPE_NUMERIC || this == TYPE_INTEGER || this == TYPE_LONG;
- }
- }
-
-}
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/PseudoLeafMember.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/PseudoLeafMember.java
deleted file mode 100644
index 989db96b8e..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/PseudoLeafMember.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.element;
-
-public interface PseudoLeafMember {
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/StoredMeasure.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/StoredMeasure.java
deleted file mode 100644
index b4180c0c63..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/StoredMeasure.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2025 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena, Stefan Bischof - initial
- *
- */
-package org.eclipse.daanse.olap.api.element;
-
-public interface StoredMeasure extends Measure {
-
- String getAggregateFunction();
-
- /**
- * Returns the cube this measure belongs to.
- */
- Cube getCube();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/VirtualCube.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/VirtualCube.java
deleted file mode 100644
index d175105f01..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/VirtualCube.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright (c) 2025 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena, Stefan Bischof - initial
- *
- */
-package org.eclipse.daanse.olap.api.element;
-
-public interface VirtualCube extends Cube {
-
- boolean shouldIgnoreUnrelatedDimensions(String name);
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/VirtualCubeMeasure.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/VirtualCubeMeasure.java
deleted file mode 100644
index 26b71da8e2..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/VirtualCubeMeasure.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) 2025 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.element;
-
-public interface VirtualCubeMeasure extends StoredMeasure {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/package-info.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/package-info.java
deleted file mode 100644
index a4e47ec6ba..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/element/package-info.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-* Copyright (c) 2022 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-@org.osgi.annotation.bundle.Export
-@org.osgi.annotation.versioning.Version("0.0.1")
-package org.eclipse.daanse.olap.api.element;
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/exception/CellRequestQuantumExceededException.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/exception/CellRequestQuantumExceededException.java
deleted file mode 100644
index a34b6f2c8a..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/exception/CellRequestQuantumExceededException.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (c) 2002-2017 Hitachi Vantara.. All rights reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-package org.eclipse.daanse.olap.api.exception;
-
-/**
- * Signals that there are enough outstanding cell requests that it is
- * worth terminating this phase of execution and asking the segment cache
- * for all of the cells that have been asked for.
- *
- *
Not really an exception, just a way of aborting a process so that we can
- * do some work and restart the process. Any code that handles this exception
- * is typically in a loop that calls {@link mondrian.rolap.RolapResult#phase}.
- *
- *
- * There are several advantages to this:
- *
- * If the query has been run before, the cells will be in the
- * cache already, and this is an opportunity to copy them into the
- * local cache.
- * If cell requests are for the same or similar cells, it gives
- * opportunity to fetch these cells. Then the requests can be answered
- * from local cache, and we don't need to bother the cache manager with
- * similar requests.
- * Prevents memory from filling up with cell requests.
- *
- */
-public final class CellRequestQuantumExceededException
- extends RuntimeException
-{
- public static final CellRequestQuantumExceededException INSTANCE =
- new CellRequestQuantumExceededException();
-
- private CellRequestQuantumExceededException() {
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/exception/OlapRuntimeException.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/exception/OlapRuntimeException.java
deleted file mode 100644
index 20d5b6c17b..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/exception/OlapRuntimeException.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (c) 2025 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- */
-package org.eclipse.daanse.olap.api.exception;
-
-@SuppressWarnings("serial")
-public class OlapRuntimeException extends RuntimeException {
-
- public OlapRuntimeException(Throwable cause) {
- super(cause);
- }
-
- public OlapRuntimeException(String message) {
- super(message);
- }
-
- public OlapRuntimeException(String message, Throwable cause) {
- super(message, cause);
- }
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/exception/package-info.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/exception/package-info.java
deleted file mode 100644
index c004fa36d1..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/exception/package-info.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-* Copyright (c) 2025 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-@org.osgi.annotation.bundle.Export
-@org.osgi.annotation.versioning.Version("0.0.1")
-package org.eclipse.daanse.olap.api.exception;
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/formatter/CellFormatter.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/formatter/CellFormatter.java
deleted file mode 100644
index 389a45557e..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/formatter/CellFormatter.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-* Copyright (c) 2025 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.formatter;
-
-public interface CellFormatter {
-
- String format(Object value);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/formatter/MemberFormatter.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/formatter/MemberFormatter.java
deleted file mode 100644
index cc43feea19..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/formatter/MemberFormatter.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2004-2005 TONBELLER AG
- * Copyright (C) 2006-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.formatter;
-
-import org.eclipse.daanse.olap.api.element.Member;
-
-
-public interface MemberFormatter {
-
-
- String format(Member member);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/formatter/MemberPropertyFormatter.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/formatter/MemberPropertyFormatter.java
deleted file mode 100644
index 4eec8f9244..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/formatter/MemberPropertyFormatter.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2004-2005 TONBELLER AG
- * Copyright (C) 2006-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.formatter;
-
-import org.eclipse.daanse.olap.api.element.Member;
-import org.eclipse.daanse.olap.api.element.Property;
-
-public interface MemberPropertyFormatter {
-
- String format(Member member, Property property, Object value);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/formatter/package-info.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/formatter/package-info.java
deleted file mode 100644
index df2b456042..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/formatter/package-info.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-* Copyright (c) 2025 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-@org.osgi.annotation.bundle.Export
-@org.osgi.annotation.versioning.Version("0.0.1")
-package org.eclipse.daanse.olap.api.formatter;
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionDefinition.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionDefinition.java
deleted file mode 100644
index 6d802b517c..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionDefinition.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
-* Copyright (c) 2023 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-* Stefan Bischof (bipolis.org) - initial
-*/
-
-package org.eclipse.daanse.olap.api.function;
-
-import java.io.PrintWriter;
-
-import org.eclipse.daanse.olap.api.Validator;
-import org.eclipse.daanse.olap.api.calc.Calc;
-import org.eclipse.daanse.olap.api.calc.compiler.ExpressionCompiler;
-import org.eclipse.daanse.olap.api.query.component.Expression;
-import org.eclipse.daanse.olap.api.query.component.ResolvedFunCall;
-
-public interface FunctionDefinition {
-
- FunctionMetaData getFunctionMetaData();
-
- /**
- * Creates an expression which represents a call to this function with
- * a given set of arguments. The result is usually a {@link ResolvedFunCall} but
- * not always.
- */
- Expression createCall(Validator validator, Expression[] args);
-
- /**
- * Returns an Signature-Description of the function.
- */
- String getSignature();
-// FunctionMetaData fi= getFunctionMetaData();
-// return fi.functionAtom().syntax().getSignature(
-// fi.functionAtom().name(),
-// fi.returnCategory(),
-// fi.parameterDataTypes());
-
-
- /**
- * Writes a function call with given {@link Expression}s into MDX.
- */
- void unparse(Expression[] args, PrintWriter pw);
-
-// getFunctionMetaData().functionAtom().syntax().unparse(getFunctionMetaData().functionAtom().name(), args, pw);
-
-
- Calc> compileCall(ResolvedFunCall call, ExpressionCompiler compiler);
-
-
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionMetaData.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionMetaData.java
deleted file mode 100644
index 5e55c332d3..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionMetaData.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
-* Copyright (c) 2023 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-* Stefan Bischof (bipolis.org) - initial
-*/
-
-package org.eclipse.daanse.olap.api.function;
-
-import org.eclipse.daanse.mdx.model.api.expression.operation.OperationAtom;
-import org.eclipse.daanse.olap.api.DataType;
-
-public interface FunctionMetaData {
-
- OperationAtom operationAtom();
-
- String description();
-
- DataType returnCategory();
-
- DataType[] parameterDataTypes();
-
- FunctionParameter[] parameters();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionParameter.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionParameter.java
deleted file mode 100644
index ec0828624f..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionParameter.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-* Stefan Bischof (bipolis.org) - initial
-*/
-
-package org.eclipse.daanse.olap.api.function;
-
-import java.util.List;
-import java.util.Optional;
-
-import org.eclipse.daanse.olap.api.DataType;
-
-public interface FunctionParameter {
-
- DataType dataType();
-
- Optional name();
-
- Optional description();
-
- Optional> reservedWords();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionResolver.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionResolver.java
deleted file mode 100644
index dc5ef64fe3..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionResolver.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2002-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * Copyright (c) 2002-2017 Hitachi Vantara.. All rights reserved.
- *
- * For more information please visit the Project: Hitachi Vantara - Mondrian
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-
-package org.eclipse.daanse.olap.api.function;
-
-import java.util.List;
-
-import org.eclipse.daanse.mdx.model.api.expression.operation.OperationAtom;
-import org.eclipse.daanse.olap.api.Validator;
-import org.eclipse.daanse.olap.api.query.component.Expression;
-
-/**
- * A {@link FunctionResolver} converts a function name, invocation type, and set
- * of arguments into a {@link FunctionDefinition}.
- */
-public interface FunctionResolver {
-
- public OperationAtom getFunctionAtom();
-
- /**
- * Given a particular set of arguments the function is applied to, returns the
- * correct overloaded form of the function.
- *
- *
- * The method adds an item to conversions every time it performs an
- * implicit type-conversion. If there are several candidate functions with the
- * same signature, the validator will choose the one which used the fewest
- * implicit conversions.
- *
- *
- * @param args Expressions which this function call is applied to.
- * @param validator Validator
- * @param conversions List of implicit conversions performed (out)
- *
- * @return The function definition which matches these arguments, or null if no
- * function definition that this resolver knows about matches.
- */
- FunctionDefinition resolve(Expression[] args, Validator validator, List conversions);
-
- /**
- * iIndicated whether a argument with a given positionOfArgument
- * must be a scalar expression. Returns false if any of the
- * variants of this resolver allows a set as its
- * positionOfArgumentth argument; true otherwise.
- *
- * if the ( positionOfArgument < 1 ) implementations must return false;
- *
- */
- boolean requiresScalarExpressionOnArgument(int positionOfArgument);
-
- /**
- * Returns a {@link List} of symbolic constants which can appear as arguments to
- * this function.
- *
- *
- * For example, the DrilldownMember may take the symbol
- * RECURSIVE as an argument. Most functions do not define any
- * symbolic constants.
- *
- * @return An {@link List} of the names of the symbolic constants
- */
- default List getReservedWords() {
- return List.of();
- }
-
- default List getRepresentativeFunctionMetaDatas() {
- return List.of();
- }
-
- /**
- * Description of an implicit conversion that occurred while resolving an
- * operator call.
- */
- public interface Conversion {
- /**
- * Returns the cost of the conversion. If there are several matching overloads,
- * the one with the lowest overall cost will be preferred.
- *
- * @return Cost of conversion
- */
- int getCost();
-
- /**
- * Checks the viability of implicit conversions. Converting from a dimension to
- * a hierarchy is valid if is only one hierarchy.
- */
- void checkValid();
-
- /**
- * Applies this conversion to its argument, modifying the argument list in
- * place.
- *
- * @param validator Validator
- * @param args Argument list
- */
- void apply(Validator validator, List args);
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionService.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionService.java
deleted file mode 100644
index 86905cbd9b..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/FunctionService.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.function;
-
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.daanse.mdx.model.api.expression.operation.OperationAtom;
-
-public interface FunctionService {
-
- void addResolver(FunctionResolver resolver);
-
- void removeResolver(FunctionResolver resolver);
-
- /**
- * Returns a Set of all words, that are used in Functions and may not be used as
- * identifiers.
- */
- Set getPropertyWords();
-
- List getFunctionMetaDatas();
-
- /**
- * Returns whether a string is a reserved word.
- */
- boolean isReservedWord(String word);
-
- /**
- * Returns a list of
- * {@link org.eclipse.daanse.olap.api.function.FunctionResolver} objects.
- */
- List getResolvers();
-
- /**
- * Returns a list of resolvers for an operator with a given name and syntax.
- * Never returns null; if there are no resolvers, returns the empty list.
- *
- * @param operationAtom OperationAtom
- * @return List of resolvers for the OperationAtom
- */
- List getResolvers(OperationAtom operationAtom);
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/package-info.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/package-info.java
deleted file mode 100644
index 278ba7b19e..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/function/package-info.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-* Copyright (c) 2022 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-@org.osgi.annotation.bundle.Export
-@org.osgi.annotation.versioning.Version("0.0.1")
-package org.eclipse.daanse.olap.api.function;
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/EventBus.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/EventBus.java
deleted file mode 100644
index fa07fcd5a2..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/EventBus.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-* Stefan Bischof (bipolis.org) - initial
-*/
-package org.eclipse.daanse.olap.api.monitor;
-
-import org.eclipse.daanse.olap.api.monitor.event.Event;
-
-public interface EventBus extends java.util.function.Consumer {
-
- /**
- * Accepts an Event
- *
- * @param event the event
- */
- @Override
- default void accept(Event event) {
-
- }
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/CellCacheEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/CellCacheEvent.java
deleted file mode 100644
index d0294f0008..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/CellCacheEvent.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2001-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * For more information please visit the Project: Hitachi Vantara - Mondrian
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2024 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.monitor.event;
-
-import org.eclipse.daanse.olap.api.CacheControl;
-
-public sealed interface CellCacheEvent extends ExecutionEvent
- permits CellCacheSegmentCreateEvent, CellCacheSegmentDeleteEvent {
- /**
- * Enumeration of sources of a cell cache segment.
- */
- public enum Source {
- /**
- * A segment that is placed into the cache by an external cache.
- *
- *
- * Some caches (e.g. memcached) never generate this kind of event.
- *
- *
- *
- * In JBoss Infinispan, one scenario that causes this kind of event is as
- * follows. A user issues an MDX query against a different Mondrian node in the
- * same Infinispan cluster. To resolve missing cells, that node issues a SQL
- * statement to load a segment. Infinispan propagates that segment to its peers,
- * and each peer is notified that an "external segment" is now in the cache.
- *
- */
- EXTERNAL,
-
- /**
- * A segment that has been loaded in response to a user query, and populated by
- * generating and executing a SQL statement.
- */
- SQL,
-
- /**
- * a segment that has been loaded in response to a user query, and populated by
- * rolling up existing cache segments.
- */
- ROLLUP,
-
- /**
- * a segment that has been deleted by a call through the {@link CacheControl}
- * API.
- */
- CACHE_CONTROL,
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/CellCacheEventCommon.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/CellCacheEventCommon.java
deleted file mode 100644
index 889ab1be59..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/CellCacheEventCommon.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-import org.eclipse.daanse.olap.api.monitor.event.CellCacheEvent.Source;
-
-public record CellCacheEventCommon(ExecutionEventCommon executionEventCommon, Source source) {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/CellCacheSegmentCreateEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/CellCacheSegmentCreateEvent.java
deleted file mode 100644
index 4c1413ff71..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/CellCacheSegmentCreateEvent.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record CellCacheSegmentCreateEvent(CellCacheEventCommon cellCacheEventCommon, int coordinateCount,
- int actualCellCount) implements CellCacheEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/CellCacheSegmentDeleteEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/CellCacheSegmentDeleteEvent.java
deleted file mode 100644
index 2e4794c6f2..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/CellCacheSegmentDeleteEvent.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record CellCacheSegmentDeleteEvent(CellCacheEventCommon cellCacheEventCommon, int coordinateCount)
- implements CellCacheEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ConnectionEndEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ConnectionEndEvent.java
deleted file mode 100644
index 6a5fd71be6..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ConnectionEndEvent.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record ConnectionEndEvent(ConnectionEventCommon connectionEventCommon) implements ConnectionEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ConnectionEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ConnectionEvent.java
deleted file mode 100644
index 73e7590777..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ConnectionEvent.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public sealed interface ConnectionEvent extends OlapEvent permits ConnectionStartEvent, ConnectionEndEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ConnectionEventCommon.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ConnectionEventCommon.java
deleted file mode 100644
index a3ea0375b8..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ConnectionEventCommon.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record ConnectionEventCommon(ServertEventCommon servertEventCommon, long connectionId) {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ConnectionStartEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ConnectionStartEvent.java
deleted file mode 100644
index fe1971311a..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ConnectionStartEvent.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record ConnectionStartEvent(ConnectionEventCommon connectionEventCommon) implements ConnectionEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/Event.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/Event.java
deleted file mode 100644
index b253e0a0c0..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/Event.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public sealed interface Event permits OlapEvent, UserSpaceEvent {
-
-}
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/EventCommon.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/EventCommon.java
deleted file mode 100644
index 5b6cc2ccaf..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/EventCommon.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-package org.eclipse.daanse.olap.api.monitor.event;
-
-import java.time.Instant;
-
-public record EventCommon(Instant timestamp) {
-
- public static EventCommon ofNow() {
- return new EventCommon(Instant.now());
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionEndEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionEndEvent.java
deleted file mode 100644
index 779ad3d7f0..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionEndEvent.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-import org.eclipse.daanse.olap.api.Execution;
-
-public record ExecutionEndEvent(ExecutionEventCommon executionEventCommon, int phaseCount, Execution.State state,
- int cellCacheHitCount, int cellCacheMissCount, int cellCachePendingCount, int expCacheHitCount,
- int expCacheMissCount) implements ExecutionEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionEvent.java
deleted file mode 100644
index 4b46f2ec98..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionEvent.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public sealed interface ExecutionEvent extends OlapEvent
- permits CellCacheEvent, ExecutionStartEvent, ExecutionPhaseEvent, ExecutionEndEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionEventCommon.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionEventCommon.java
deleted file mode 100644
index aa88c0ea36..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionEventCommon.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record ExecutionEventCommon(MdxStatementEventCommon mdxStatementEventCommon, long executionId) {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionPhaseEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionPhaseEvent.java
deleted file mode 100644
index 4b53a99aca..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionPhaseEvent.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record ExecutionPhaseEvent(ExecutionEventCommon executionEventCommon, int phase, int hitCount, int missCount,
- int pendingCount) implements ExecutionEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionStartEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionStartEvent.java
deleted file mode 100644
index a63199a101..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ExecutionStartEvent.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record ExecutionStartEvent(ExecutionEventCommon eventCommon, String mdx) implements ExecutionEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/MdxStatementEndEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/MdxStatementEndEvent.java
deleted file mode 100644
index d7cb6001fe..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/MdxStatementEndEvent.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record MdxStatementEndEvent(MdxStatementEventCommon mdxStatementEventCommon) implements StatementEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/MdxStatementEventCommon.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/MdxStatementEventCommon.java
deleted file mode 100644
index bde60e1121..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/MdxStatementEventCommon.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record MdxStatementEventCommon(ConnectionEventCommon connectionEventCommon, long mdxStatementId) {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/MdxStatementStartEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/MdxStatementStartEvent.java
deleted file mode 100644
index 603b73762e..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/MdxStatementStartEvent.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record MdxStatementStartEvent(MdxStatementEventCommon mdxStatementEventCommon) implements StatementEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/OlapEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/OlapEvent.java
deleted file mode 100644
index 104d0db145..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/OlapEvent.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public sealed interface OlapEvent extends Event
- permits ExecutionEvent, SqlStatementEvent, StatementEvent, ConnectionEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ServertEventCommon.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ServertEventCommon.java
deleted file mode 100644
index 34378bc157..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/ServertEventCommon.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record ServertEventCommon(EventCommon commonEventInfo, String serverId) {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementEndEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementEndEvent.java
deleted file mode 100644
index 9d25bc6ba2..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementEndEvent.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record SqlStatementEndEvent(SqlStatementEventCommon sqlStatementEventInfo, long rowFetchCount, boolean canceled,
- Throwable throwable) implements SqlStatementEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementEvent.java
deleted file mode 100644
index 0849552b91..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementEvent.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2001-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * For more information please visit the Project: Hitachi Vantara - Mondrian
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2024 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public sealed interface SqlStatementEvent extends OlapEvent
- permits SqlStatementStartEvent, SqlStatementEndEvent, SqlStatementExecuteEvent {
- public enum Purpose {
- DRILL_THROUGH, CELL_SEGMENT, TUPLES, OTHER
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementEventCommon.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementEventCommon.java
deleted file mode 100644
index 627f9bcffd..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementEventCommon.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-package org.eclipse.daanse.olap.api.monitor.event;
-
-import org.eclipse.daanse.olap.api.monitor.event.SqlStatementEvent.Purpose;
-
-public record SqlStatementEventCommon(EventCommon eventCommon, long mdxStatementId, long sqlStatementId, String sql,
- Purpose purpose) {
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementExecuteEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementExecuteEvent.java
deleted file mode 100644
index c56b9cd81f..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementExecuteEvent.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public record SqlStatementExecuteEvent(SqlStatementEventCommon sqlStatementEventCommon, long executeNanos)
- implements SqlStatementEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementStartEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementStartEvent.java
deleted file mode 100644
index 2dc8603476..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/SqlStatementStartEvent.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-/**
- * The Record SqlStatementStartEvent.
- *
- * @param sqlStatementEventInfo
- * @param cellRequestCount Number of missed cells that led to this request
- */
-public record SqlStatementStartEvent(SqlStatementEventCommon sqlStatementEventCommon, long cellRequestCount)
- implements SqlStatementEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/StatementEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/StatementEvent.java
deleted file mode 100644
index 08f4dfffc3..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/StatementEvent.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public sealed interface StatementEvent extends OlapEvent permits MdxStatementStartEvent, MdxStatementEndEvent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/UserSpaceEvent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/UserSpaceEvent.java
deleted file mode 100644
index c78a26cd32..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/UserSpaceEvent.java
+++ /dev/null
@@ -1,17 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-package org.eclipse.daanse.olap.api.monitor.event;
-
-public non-sealed interface UserSpaceEvent extends Event {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/package-info.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/package-info.java
deleted file mode 100644
index b15a542fee..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/event/package-info.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-@org.osgi.annotation.bundle.Export
-@org.osgi.annotation.versioning.Version("0.0.1")
-package org.eclipse.daanse.olap.api.monitor.event;
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/package-info.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/package-info.java
deleted file mode 100644
index 4e54cb5373..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/monitor/package-info.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-* Copyright (c) 2024 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-@org.osgi.annotation.bundle.Export
-@org.osgi.annotation.versioning.Version("0.0.1")
-package org.eclipse.daanse.olap.api.monitor;
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/package-info.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/package-info.java
deleted file mode 100644
index 6d0d4740e0..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/package-info.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-* Copyright (c) 2022 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-@org.osgi.annotation.bundle.Export
-@org.osgi.annotation.versioning.Version("0.0.1")
-package org.eclipse.daanse.olap.api;
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/ExpressionProvider.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/ExpressionProvider.java
deleted file mode 100644
index 2e7be8f6f0..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/ExpressionProvider.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query;
-
-import org.eclipse.daanse.mdx.model.api.expression.MdxExpression;
-import org.eclipse.daanse.olap.api.query.component.Expression;
-
-public interface ExpressionProvider {
-
- Expression createExpression(MdxExpression expression);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/QueryProvider.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/QueryProvider.java
deleted file mode 100644
index 18774ee515..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/QueryProvider.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query;
-
-import org.eclipse.daanse.mdx.model.api.DMVStatement;
-import org.eclipse.daanse.mdx.model.api.DrillthroughStatement;
-import org.eclipse.daanse.mdx.model.api.ExplainStatement;
-import org.eclipse.daanse.mdx.model.api.MdxStatement;
-import org.eclipse.daanse.mdx.model.api.RefreshStatement;
-import org.eclipse.daanse.mdx.model.api.SelectStatement;
-import org.eclipse.daanse.mdx.model.api.UpdateStatement;
-import org.eclipse.daanse.olap.api.Statement;
-import org.eclipse.daanse.olap.api.query.component.CellProperty;
-import org.eclipse.daanse.olap.api.query.component.DmvQuery;
-import org.eclipse.daanse.olap.api.query.component.DrillThrough;
-import org.eclipse.daanse.olap.api.query.component.Explain;
-import org.eclipse.daanse.olap.api.query.component.Formula;
-import org.eclipse.daanse.olap.api.query.component.Query;
-import org.eclipse.daanse.olap.api.query.component.QueryAxis;
-import org.eclipse.daanse.olap.api.query.component.QueryComponent;
-import org.eclipse.daanse.olap.api.query.component.Refresh;
-import org.eclipse.daanse.olap.api.query.component.Subcube;
-import org.eclipse.daanse.olap.api.query.component.Update;
-
-public interface QueryProvider {
-
- QueryComponent createQuery(Statement statement, MdxStatement selectStatement, boolean strictValidation);
-
- Query createQuery(Statement statement, SelectStatement selectStatement, boolean strictValidation);
-
- DrillThrough createDrillThrough(Statement statement, DrillthroughStatement drillThroughStatement, boolean strictValidation);
-
- Explain createExplain(Statement statement, ExplainStatement explainStatement, boolean strictValidation);
-
- DmvQuery createDMV(DMVStatement dmvStatement);
-
- Refresh createRefresh(RefreshStatement refreshStatement);
-
- Update createUpdate(UpdateStatement updateStatement);
-
- Query createQuery(Statement statement,
- Formula[] formula,
- QueryAxis[] axes,
- Subcube subcube,
- QueryAxis slicerAxis,
- CellProperty[] cellProps,
- boolean strictValidation);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/AxisOrdinal.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/AxisOrdinal.java
deleted file mode 100644
index 51b13b1629..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/AxisOrdinal.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2003-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-
-package org.eclipse.daanse.olap.api.query.component;
-
-/**
- * AxisOrdinal describes the allowable values for an axis code.
- *
- * @author jhyde
- * @since Feb 21, 2003
- */
-public interface AxisOrdinal {
- /**
- * Returns the name of this axis, e.g. "COLUMNS", "SLICER", "AXIS(17)".
- *
- * @return Name of the axis
- */
- String name();
-
- /**
- * Returns the ordinal of this axis. {@link StandardAxisOrdinal#COLUMNS} = 0,
- * {@link StandardAxisOrdinal#ROWS} = 1, etc.
- *
- * @return ordinal of this axis
- */
- int logicalOrdinal();
-
- /**
- * Returns whether this is the filter (slicer) axis.
- *
- * @return whether this is the filter axis
- */
- boolean isFilter();
-
- public enum StandardAxisOrdinal implements AxisOrdinal {
- /** No axis. */
- NONE,
-
- /** Slicer axis. */
- SLICER,
-
- /** Columns axis (also known as X axis), logical ordinal = 0. */
- COLUMNS,
-
- /** Rows axis (also known as Y axis), logical ordinal = 1. */
- ROWS,
-
- /** Pages axis, logical ordinal = 2. */
- PAGES,
-
- /** Chapters axis, logical ordinal = 3. */
- CHAPTERS,
-
- /** Sections axis, logical ordinal = 4. */
- SECTIONS;
-
- /**
- * Returns an axis with a given number.
- *
- *
- * If ordinal is greater than 4, returns a non-standard axis called "AXIS(n)".
- * Never returns null.
- *
- * @param ordinal Ordinal
- * @return Axis
- */
- public static AxisOrdinal forLogicalOrdinal(final int ordinal) {
- if (ordinal + 2 > SECTIONS.ordinal()) {
- return new AxisOrdinalR(ordinal, false);
- } else {
- return values()[ordinal + 2];
- }
- }
-
- @Override
- public int logicalOrdinal() {
- return ordinal() - 2;
- }
-
- @Override
- public boolean isFilter() {
- return this == SLICER;
- }
- }
-
- record AxisOrdinalR(int logicalOrdinal, boolean isFilter) implements AxisOrdinal {
- @Override
- public String name() {
- return new StringBuilder("AXIS(").append(logicalOrdinal).append(")").toString();
- }
-
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/CalculatedFormula.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/CalculatedFormula.java
deleted file mode 100644
index abda1c1107..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/CalculatedFormula.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-public non-sealed interface CalculatedFormula extends QueryComponent {
-
- String getCubeName();
-
- Formula getFormula();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/CellProperty.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/CellProperty.java
deleted file mode 100644
index 101415a451..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/CellProperty.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-public non-sealed interface CellProperty extends QueryComponent {
-
- boolean isNameEquals(String propertyName);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/DimensionExpression.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/DimensionExpression.java
deleted file mode 100644
index c265b3855e..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/DimensionExpression.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import org.eclipse.daanse.olap.api.element.Dimension;
-
-public non-sealed interface DimensionExpression extends QueryComponent {
-
- Dimension getDimension();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/DmvQuery.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/DmvQuery.java
deleted file mode 100644
index 48589e757a..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/DmvQuery.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import java.util.List;
-
-public non-sealed interface DmvQuery extends QueryComponent {
-
- String getTableName();
-
- Expression getWhereExpression();
-
- List getColumns();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/DrillThrough.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/DrillThrough.java
deleted file mode 100644
index f1ecc988d2..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/DrillThrough.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import java.util.List;
-
-import org.eclipse.daanse.olap.api.element.OlapElement;
-
-public non-sealed interface DrillThrough extends QueryComponent {
-
- Query getQuery();
-
- int getMaxRowCount();
-
- int getFirstRowOrdinal();
-
- List getReturnList();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Explain.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Explain.java
deleted file mode 100644
index 901d70eaa8..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Explain.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-public non-sealed interface Explain extends QueryComponent {
-
- QueryComponent getQuery();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Expression.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Expression.java
deleted file mode 100644
index 0dbcc14478..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Expression.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 1999-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * For more information please visit the Project: Hitachi Vantara - Mondrian
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-
-package org.eclipse.daanse.olap.api.query.component;
-
-import java.io.PrintWriter;
-
-import org.eclipse.daanse.olap.api.DataType;
-import org.eclipse.daanse.olap.api.Validator;
-import org.eclipse.daanse.olap.api.calc.Calc;
-import org.eclipse.daanse.olap.api.calc.compiler.ExpressionCompiler;
-import org.eclipse.daanse.olap.api.query.component.visit.QueryComponentVisitor;
-import org.eclipse.daanse.olap.api.type.Type;
-
-/**
- * An {@link Expression} is an MDX expression.
- */
-public interface Expression {
-
- Expression cloneExp();
-
- /**
- * Returns the {@link DataType} of the expression.
- *
- * @post Category.instance().isValid(return)
- */
- DataType getCategory();
-
- /**
- * Returns the type of this expression. Never null.
- */
- Type getType();
-
- /**
- * Writes the MDX representation of this expression to a print writer.
- * Sub-expressions are invoked recursively.
- *
- * @param pw PrintWriter
- */
- void unparse(PrintWriter pw);
-
- /**
- * Validates this expression.
- *
- * The validator acts in the role of 'visitor' (see Gang of Four
- * 'visitor pattern'), and an expression in the role of 'visitee'.
- *
- * @param validator Validator contains validation context
- *
- * @return The validated expression; often but not always the same as
- * this expression
- */
- Expression accept(Validator validator);
-
- /**
- * Converts this expression into an a tree of expressions which can be
- * efficiently evaluated.
- *
- * @param compiler
- * @return A compiled expression
- */
- Calc accept(ExpressionCompiler compiler);
-
- /**
- * Accepts a visitor to this {@link Expression}.
- * The implementation should generally dispatches to the
- * {@link QueryComponentVisitor} method appropriate to the type of expression.
- *
- * @param visitor Visitor
- */
- Object accept(QueryComponentVisitor visitor);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Formula.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Formula.java
deleted file mode 100644
index 89fe4dacc6..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Formula.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import org.eclipse.daanse.olap.api.Validator;
-import org.eclipse.daanse.olap.api.element.Member;
-import org.eclipse.daanse.olap.api.element.NamedSet;
-import org.eclipse.daanse.olap.api.element.OlapElement;
-import org.eclipse.daanse.olap.api.query.component.visit.QueryComponentVisitor;
-
-public non-sealed interface Formula extends QueryComponent {
-
- boolean isMember();
-
- NamedSet getNamedSet();
-
- Id getIdentifier();
-
- String getName();
-
- String getCaption();
-
- Expression getExpression();
-
- Expression setExpression(Expression exp);
-
- Member getMdxMember();
-
- Number getSolveOrder();
-
- void compile();
-
- Id getId();
-
- Expression getExp();
-
- NamedSet getMdxSet();
-
- MemberProperty[] getPemberProperties();
-
- void accept(Validator validator);
-
- Object accept(QueryComponentVisitor visitor);
-
- void createElement(Query q);
-
- OlapElement getElement();
-
- String getUniqueName();
-
- void rename(String newName);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/FunctionCall.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/FunctionCall.java
deleted file mode 100644
index dd139efa2c..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/FunctionCall.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 1998-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.query.component;
-
-import org.eclipse.daanse.mdx.model.api.expression.operation.OperationAtom;
-import org.eclipse.daanse.olap.api.function.FunctionDefinition;
-
-/**
- * A FunCall is a function applied to a list of operands.
- *
- * The parser creates function calls as an
- * {@link mondrian.mdx.UnresolvedFunCallImpl unresolved function call}.
- * The validator converts it to a
- * {@link mondrian.mdx.ResolvedFunCallImpl resolved function call},
- * which has a {@link FunctionDefinition function definition} and extra type information.
- *
- * @author jhyde
- * @since Jan 6, 2006
- */
-public interface FunctionCall extends Expression {
- /**
- * Returns the indexth argument to this function
- * call.
- *
- * @param index Ordinal of the argument
- * @return indexth argument to this function call
- */
- Expression getArg(int index);
-
- /**
- * Returns the arguments to this function.
- *
- * @return array of arguments
- */
- Expression[] getArgs();
-
- /**
- * Returns the number of arguments to this function.
- *
- * @return number of arguments
- */
- int getArgCount();
-
- /**
- * Returns the OperationAtom.
- */
- OperationAtom getOperationAtom();
-
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/HierarchyExpression.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/HierarchyExpression.java
deleted file mode 100644
index 07c901e208..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/HierarchyExpression.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import org.eclipse.daanse.olap.api.element.Hierarchy;
-
-public non-sealed interface HierarchyExpression extends QueryComponent {
-
- /**
- * Returns the hierarchy.
- */
- Hierarchy getHierarchy();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Id.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Id.java
deleted file mode 100644
index 891f305241..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Id.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import java.util.List;
-
-import org.eclipse.daanse.olap.api.Segment;
-
-public non-sealed interface Id extends QueryComponent {
-
- String[] toStringArray();
-
- List getSegments();
-
- Segment getElement(int i);
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/LevelExpression.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/LevelExpression.java
deleted file mode 100644
index 42f42d76c4..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/LevelExpression.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import org.eclipse.daanse.olap.api.element.Level;
-
-public non-sealed interface LevelExpression extends QueryComponent {
-
- Level getLevel();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Literal.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Literal.java
deleted file mode 100644
index 35f27c9adb..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Literal.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-public sealed interface Literal extends QueryComponent permits NullLiteral, StringLiteral, NumericLiteral, SymbolLiteral {
-
- R getValue();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/MemberExpression.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/MemberExpression.java
deleted file mode 100644
index 89011a08f7..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/MemberExpression.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import org.eclipse.daanse.olap.api.element.Member;
-
-public non-sealed interface MemberExpression extends QueryComponent, Expression {
-
- Member getMember();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/MemberProperty.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/MemberProperty.java
deleted file mode 100644
index bc4d727029..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/MemberProperty.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import org.eclipse.daanse.olap.api.Validator;
-
-public non-sealed interface MemberProperty extends QueryComponent{
-
- Expression getExp();
-
- String getName();
-
- void resolve(Validator validator);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/NamedSetExpression.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/NamedSetExpression.java
deleted file mode 100644
index d5bcd1b3be..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/NamedSetExpression.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import org.eclipse.daanse.olap.api.Evaluator;
-import org.eclipse.daanse.olap.api.element.NamedSet;
-
-public non-sealed interface NamedSetExpression extends QueryComponent {
-
- NamedSet getNamedSet();
-
- Evaluator.NamedSetEvaluator getEval(Evaluator evaluator);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/NullLiteral.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/NullLiteral.java
deleted file mode 100644
index 084903a5f7..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/NullLiteral.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-public non-sealed interface NullLiteral extends Literal {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/NumericLiteral.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/NumericLiteral.java
deleted file mode 100644
index cb237f2bcf..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/NumericLiteral.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import java.math.BigDecimal;
-
-public non-sealed interface NumericLiteral extends Literal {
-
- int getIntValue();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/ParameterExpression.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/ParameterExpression.java
deleted file mode 100644
index 84c818992b..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/ParameterExpression.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import org.eclipse.daanse.olap.api.Parameter;
-
-public non-sealed interface ParameterExpression extends QueryComponent , Expression{
-
- Parameter getParameter();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Query.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Query.java
deleted file mode 100644
index c424e70a2b..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Query.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.daanse.olap.api.CatalogReader;
-import org.eclipse.daanse.olap.api.Connection;
-import org.eclipse.daanse.olap.api.Parameter;
-import org.eclipse.daanse.olap.api.Statement;
-import org.eclipse.daanse.olap.api.Validator;
-import org.eclipse.daanse.olap.api.calc.Calc;
-import org.eclipse.daanse.olap.api.calc.ResultStyle;
-import org.eclipse.daanse.olap.api.calc.compiler.ExpressionCompiler;
-import org.eclipse.daanse.olap.api.element.Cube;
-import org.eclipse.daanse.olap.api.element.Hierarchy;
-import org.eclipse.daanse.olap.api.element.Member;
-import org.eclipse.daanse.olap.api.element.OlapElement;
-import org.eclipse.daanse.olap.api.function.FunctionDefinition;
-import org.eclipse.daanse.olap.api.query.component.visit.QueryComponentVisitor;
-
-public non-sealed interface Query extends QueryComponent {
-
- CatalogReader getCatalogReader(boolean b);
-
- Cube getCube();
-
- void setResultStyle(ResultStyle list);
-
- QueryAxis[] getAxes();
-
- Calc compileExpression(Expression exp, boolean scalar, ResultStyle resultStyle);
-
- Map getSubcubeHierarchyCalcs();
-
- void replaceSubcubeMembers();
-
- void resolve();
-
- void clearEvalCache();
-
- QueryAxis getSlicerAxis();
-
- QueryComponent[] getCellProperties();
-
- Set getMeasuresMembers();
-
- Calc getSlicerCalc();
-
- Calc[] getAxisCalcs();
-
- void setSubcubeHierarchies(HashMap> subcubeHierarchies);
-
- void putEvalCache(String key, Object value);
-
- Object getEvalCache(String key);
-
- Formula[] getFormulas();
-
- Statement getStatement();
-
- Connection getConnection();
-
- void addFormulas(Formula[] toArray);
-
- Formula findFormula(String toString);
-
- Validator createValidator();
-
- Collection getBaseCubes();
-
- void addMeasuresMembers(OlapElement olapElement);
-
- void setBaseCubes(List baseCubeList);
-
- boolean nativeCrossJoinVirtualCube();
-
- boolean shouldAlertForNonNative(FunctionDefinition fun);
-
- ExpressionCompiler createCompiler();
-
- boolean hasCellProperty(String name);
-
- Parameter[] getParameters();
-
- ResultStyle getResultStyle();
-
- boolean ignoreInvalidMembers();
-
- boolean isCellPropertyEmpty();
-
- void setVirtualCubeNonNativeCrossJoin();
-
- Object accept(QueryComponentVisitor visitor);
-
- Hierarchy[] getMdxHierarchiesOnAxis(AxisOrdinal forLogicalOrdinal);
-
- void setParameter(String string, Object object);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/QueryAxis.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/QueryAxis.java
deleted file mode 100644
index 7ff42adafd..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/QueryAxis.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import org.eclipse.daanse.olap.api.SubtotalVisibility;
-import org.eclipse.daanse.olap.api.Validator;
-import org.eclipse.daanse.olap.api.calc.Calc;
-import org.eclipse.daanse.olap.api.calc.ResultStyle;
-import org.eclipse.daanse.olap.api.calc.compiler.ExpressionCompiler;
-import org.eclipse.daanse.olap.api.element.Level;
-import org.eclipse.daanse.olap.api.query.component.visit.QueryComponentVisitor;
-
-public non-sealed interface QueryAxis extends QueryComponent {
-
- String getAxisName();
-
- AxisOrdinal getAxisOrdinal();
-
- boolean isNonEmpty();
-
- void setNonEmpty(boolean nonEmpty);
-
- Expression getSet();
-
- void setSet(Expression set);
-
- Calc compile(ExpressionCompiler compiler, ResultStyle resultStyle);
-
- Object accept(QueryComponentVisitor visitor);
-
- Id[] getDimensionProperties();
-
- SubtotalVisibility getSubtotalVisibility();
-
- void validate(Validator validator);
-
- void addLevel(Level level);
-
- void resolve(Validator validator);
-
- boolean isOrdered();
-
- void setOrdered(boolean ordered);
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/QueryComponent.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/QueryComponent.java
deleted file mode 100644
index ff5acebca7..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/QueryComponent.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * Copyright (c) 2024 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import java.io.PrintWriter;
-
-public sealed interface QueryComponent permits
- CalculatedFormula,
- CellProperty,
- DimensionExpression,
- DmvQuery,
- DrillThrough,
- Explain,
- Formula,
- HierarchyExpression,
- Id,
- LevelExpression,
- Literal,
- MemberProperty,
- NamedSetExpression,
- ParameterExpression,
- Query,
- QueryAxis,
- Refresh,
- ResolvedFunCall,
- Subcube,
- TransactionCommand,
- UnresolvedFunCall,
- Update,
- MemberExpression,
- WrapExpression,
- UpdateClause,
- SqlQuery {
-
- /**
- * Returns an array of the object's children. Those which are not are ignored.
- */
- Object[] getChildren();
-
- /**
- * Writes a string representation of this parse tree
- * node to the given writer.
- *
- * @param pw writer
- */
- void unparse(PrintWriter pw);
-
- /**
- * Returns the plan that Mondrian intends to use to execute this query.
- *
- * @param pw Print writer
- */
- void explain(PrintWriter pw);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Refresh.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Refresh.java
deleted file mode 100644
index dbb5055e99..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Refresh.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-public non-sealed interface Refresh extends QueryComponent {
-
- String getCubeName();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/ResolvedFunCall.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/ResolvedFunCall.java
deleted file mode 100644
index 13845addac..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/ResolvedFunCall.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import org.eclipse.daanse.olap.api.function.FunctionDefinition;
-import org.eclipse.daanse.olap.api.type.Type;
-
-public non-sealed interface ResolvedFunCall extends QueryComponent, FunctionCall {
-
- int getArgCount();
-
- FunctionDefinition getFunDef();
-
- Expression getArg(int i);
-
- Expression[] getArgs();
-
- Type getType();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/SqlQuery.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/SqlQuery.java
deleted file mode 100644
index 4af75f8ce0..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/SqlQuery.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Copyright (c) 2025 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena, Stefan Bischof - initial
- *
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import java.sql.ResultSet;
-
-public non-sealed interface SqlQuery extends QueryComponent{
-
- String getSql();
-
- ResultSet execute();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/StringLiteral.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/StringLiteral.java
deleted file mode 100644
index 87916f1ddd..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/StringLiteral.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-public non-sealed interface StringLiteral extends Literal {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Subcube.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Subcube.java
deleted file mode 100644
index 7b4995b743..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Subcube.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import java.util.List;
-
-public non-sealed interface Subcube extends QueryComponent{
-
- String getCubeName();
-
- List getAxisExps();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/SymbolLiteral.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/SymbolLiteral.java
deleted file mode 100644
index 53ef9dd4b7..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/SymbolLiteral.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-public non-sealed interface SymbolLiteral extends Literal{
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/TransactionCommand.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/TransactionCommand.java
deleted file mode 100644
index edab34e349..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/TransactionCommand.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import org.eclipse.daanse.olap.api.Command;
-
-public non-sealed interface TransactionCommand extends QueryComponent {
-
- Command getCommand();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/UnresolvedFunCall.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/UnresolvedFunCall.java
deleted file mode 100644
index ed3c685755..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/UnresolvedFunCall.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-public non-sealed interface UnresolvedFunCall extends QueryComponent,FunctionCall {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Update.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Update.java
deleted file mode 100644
index 42de8b2e98..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/Update.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import java.util.List;
-
-public non-sealed interface Update extends QueryComponent {
-
- String getCubeName();
-
- List getUpdateClauses();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/UpdateClause.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/UpdateClause.java
deleted file mode 100644
index a3ea988bc7..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/UpdateClause.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-import org.eclipse.daanse.mdx.model.api.select.Allocation;
-
-public non-sealed interface UpdateClause extends QueryComponent {
-
- Expression getTupleExp();
-
- Expression getValueExp();
-
- Allocation getAllocation();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/WrapExpression.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/WrapExpression.java
deleted file mode 100644
index 39cd036932..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/WrapExpression.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component;
-
-public non-sealed interface WrapExpression extends QueryComponent {
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/package-info.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/package-info.java
deleted file mode 100644
index 4f0382fa9f..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/package-info.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-* Copyright (c) 2022 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-@org.osgi.annotation.bundle.Export
-@org.osgi.annotation.versioning.Version("0.0.1")
-package org.eclipse.daanse.olap.api.query.component;
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/visit/QueryComponentVisitor.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/visit/QueryComponentVisitor.java
deleted file mode 100644
index 0b3dc73dd3..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/visit/QueryComponentVisitor.java
+++ /dev/null
@@ -1,145 +0,0 @@
- /*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (c) 2002-2017 Hitachi Vantara.. All rights reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.query.component.visit;
-
-import org.eclipse.daanse.olap.api.query.component.DimensionExpression;
-import org.eclipse.daanse.olap.api.query.component.Formula;
-import org.eclipse.daanse.olap.api.query.component.HierarchyExpression;
-import org.eclipse.daanse.olap.api.query.component.Id;
-import org.eclipse.daanse.olap.api.query.component.LevelExpression;
-import org.eclipse.daanse.olap.api.query.component.Literal;
-import org.eclipse.daanse.olap.api.query.component.MemberExpression;
-import org.eclipse.daanse.olap.api.query.component.NamedSetExpression;
-import org.eclipse.daanse.olap.api.query.component.ParameterExpression;
-import org.eclipse.daanse.olap.api.query.component.Query;
-import org.eclipse.daanse.olap.api.query.component.QueryAxis;
-import org.eclipse.daanse.olap.api.query.component.ResolvedFunCall;
-import org.eclipse.daanse.olap.api.query.component.UnresolvedFunCall;
-
-/**
- * Visitor to an Tree of QueryComponents that must implement
- * {@link Visitee}.
- *
- */
-public interface QueryComponentVisitor {
- /**
- * Indicates that {@link Visitee} must also call
- * {@link QueryComponentVisitee#accept(QueryComponentVisitor)a} on existing
- * children
- */
- boolean visitChildren();
-
- /**
- * Visits a Query.
- *
- * {@link QueryComponentVisitor#accept(QueryComponentVisitor) }
- */
- Object visitQuery(Query query);
-
- /**
- * Visits a QueryAxis.
- *
- * {@link QueryComponentVisitor#accept(QueryComponentVisitor) }
- */
- Object visitQueryAxis(QueryAxis queryAxis);
-
- /**
- * Visits a Formula.
- *
- * {@link QueryComponentVisitor#accept(QueryComponentVisitor) }
- */
- Object visitFormula(Formula formula);
-
- /**
- * Visits an UnresolvedFunCall.
- *
- * {@link QueryComponentVisitor#accept(QueryComponentVisitor) }
- *
- */
- Object visitUnresolvedFunCall(UnresolvedFunCall call);
-
- /**
- * Visits a ResolvedFunCall.
- *
- * {@link QueryComponentVisitor#accept(QueryComponentVisitor) }
- */
- Object visitResolvedFunCall(ResolvedFunCall call);
-
- /**
- * Visits an Id.
- *
- * {@link QueryComponentVisitor#accept(QueryComponentVisitor) }
- */
- Object visitId(Id id);
-
- /**
- * Visits a Parameter.
- *
- * {@link QueryComponentVisitor#accept(QueryComponentVisitor) }
- */
- Object visitParameterExpression(ParameterExpression parameterExpr);
-
- /**
- * Visits a DimensionExpr.
- *
- * {@link QueryComponentVisitor#accept(QueryComponentVisitor) }
- */
- Object visitDimensionExpression(DimensionExpression dimensionExpr);
-
- /**
- * Visits a HierarchyExpr.
- *
- * {@link QueryComponentVisitor#accept(QueryComponentVisitor) }
- */
- Object visitHierarchyExpression(HierarchyExpression hierarchyExpr);
-
- /**
- * Visits a LevelExpr.
- *
- * {@link QueryComponentVisitor#accept(QueryComponentVisitor) }
- */
- Object visitLevelExpression(LevelExpression levelExpr);
-
- /**
- * Visits a MemberExpr.
- *
- * {@link QueryComponentVisitor#accept(QueryComponentVisitor) }
- */
- Object visitMemberExpression(MemberExpression memberExpr);
-
- /**
- * Visits a NamedSetExpr.
- *
- * {@link QueryComponentVisitor#accept(QueryComponentVisitor) }
- */
- Object visitNamedSetExpression(NamedSetExpression namedSetExpr);
-
- /**
- * Visits a Literal.
- *
- * {@link QueryComponentVisitor#accept(QueryComponentVisitor) }
- */
- Object visitLiteral(Literal> literal);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/visit/Visitee.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/visit/Visitee.java
deleted file mode 100644
index 280852f551..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/visit/Visitee.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2022 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.query.component.visit;
-
-/**
- *
- * Visitee equivalent of QueryComponentVisitor
- * See also {@link QueryComponentVisitor}
- */
-public interface Visitee {
-
-
- public T accept(QueryComponentVisitor visitor);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/visit/package-info.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/visit/package-info.java
deleted file mode 100644
index ebc80763c2..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/component/visit/package-info.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-* Copyright (c) 2022 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-@org.osgi.annotation.bundle.Export
-@org.osgi.annotation.versioning.Version("0.0.1")
-package org.eclipse.daanse.olap.api.query.component.visit;
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/package-info.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/package-info.java
deleted file mode 100644
index b390fa5515..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/query/package-info.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-* Copyright (c) 2022 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-@org.osgi.annotation.bundle.Export
-@org.osgi.annotation.versioning.Version("0.0.1")
-package org.eclipse.daanse.olap.api.query;
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/AllocationPolicy.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/AllocationPolicy.java
deleted file mode 100644
index 420159343b..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/AllocationPolicy.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * Licensed to Julian Hyde under one or more contributor license
- * agreements. See the NOTICE file distributed with this work for
- * additional information regarding copyright ownership.
- *
- * Julian Hyde licenses this file to you under the Apache License,
- * Version 2.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.result;
-
-
-
-/**
- * Enumeration of the policies that can be used to modify the values of
- * child cells when their parent cell is modified in a writeback operation.
- *
- * @see Cell#setValue
- *
- * @author jhyde
- * @since Aug 22, 2006
- */
-public enum AllocationPolicy {
- /**
- * Every atomic cell that contributes to the updated cell will be
- * assigned an equal value that is:
- *
- *
- * <atomic cell value> =
- * <value> / Count(atomic cells contained in <tuple>)
- *
- */
- EQUAL_ALLOCATION,
-
- /**
- * Every atomic cell that contributes to the updated cell will be
- * changed according to:
- *
- *
- * <atomic cell value> = <atomic cell value> +
- * (<value> - <existing value>) /
- * Count(atomic cells contained in <tuple>)
- *
- */
- EQUAL_INCREMENT,
-
- /**
- * Every atomic cell that contributes to the updated cell will be
- * assigned an equal value that is:
- *
- *
- * <atomic cell value> =
- * <value> * <weight value expression>
- *
- *
- * Takes an optional argument, {@code weight_value_expression}.
- * If {@code weight_value_expression} is not provided, the following
- * expression is assigned to it by default:
- *
- *
- * <weight value expression> =
- * <atomic cell value> / <existing value>
- *
- *
- * The value of {@code weight value expression} should be expressed
- * as a value between 0 and 1. This value specifies the ratio of the
- * allocated value you want to assign to the atomic cells that are
- * affected by the allocation. It is the client application programmer's
- * responsibilffity to create expressions whose rollup aggregate values
- * will equal the allocated value of the expression.
- */
- WEIGHTED_ALLOCATION,
-
- /**
- * Every atomic cell that contributes to the updated cell will be
- * changed according to:
- *
- *
- * <atomic cell value> = <atomic cell value> +
- * (<value> - <existing value>) *
- * <weight value expression>
- *
- *
- * Takes an optional argument, {@code weight_value_expression}.
- * If {@code weight_value_expression} is not provided, the following
- * expression is assigned to it by default:
- *
- *
- * <weight value expression> =
- * <atomic cell value> / <existing value>
- *
- *
- * The value of {@code weight value expression} should be expressed
- * as a value between 0 and 1. This value specifies the ratio of the
- * allocated value you want to assign to the atomic cells that are
- * affected by the allocation. It is the client application programmer's
- * responsibility to create expressions whose rollup aggregate values
- * will equal the allocated value of the expression.
- */
- WEIGHTED_INCREMENT,
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Axis.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Axis.java
deleted file mode 100644
index c7497f0cce..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Axis.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2001-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * Contributors:
- * SmartCity Jena - refactor, clean API
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-
-package org.eclipse.daanse.olap.api.result;
-
-import java.util.List;
-
-import org.eclipse.daanse.olap.api.calc.todo.TupleList;
-
-/**
- * A Axis is a component of a {@link Result}.
- * It contains a list of {@link Position}s.
- *
- * @author jhyde
- * @since 6 August, 2001
- */
-public interface Axis {
- List getPositions();
-
- TupleList getTupleList();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Cell.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Cell.java
deleted file mode 100644
index ce732318a9..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Cell.java
+++ /dev/null
@@ -1,172 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2001-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * Contributors:
- * SmartCity Jena - refactor, clean API
-*
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-
-package org.eclipse.daanse.olap.api.result;
-
-import java.util.List;
-
-import org.eclipse.daanse.olap.api.ISqlStatement;
-import org.eclipse.daanse.olap.api.element.Hierarchy;
-import org.eclipse.daanse.olap.api.element.Member;
-import org.eclipse.daanse.olap.api.element.OlapElement;
-import org.slf4j.Logger;
-
-
-/**
- * A Cell is an item in the grid of a {@link Result}. It is
- * returned by {@link Result#getCell}.
- *
- * @author jhyde
- * @since 6 August, 2001
- */
-public interface Cell {
- /**
- * Returns the coordinates of this Cell in its {@link Result}.
- *
- * @return Coordinates of this Cell
- */
- List getCoordinateList();
-
- /**
- * Returns the cell's raw value. This is useful for sending to further data
- * processing, such as plotting a chart.
- *
- * The value is never null. It may have various types:
- * if the cell is null, the value is {@link Util#nullValue};
- * if the cell contains an error, the value is an instance of
- * {@link Throwable};
- * otherwise, the type of this value depends upon the type of
- * measure: possible types include {@link java.math.BigDecimal},
- * {@link Double}, {@link Integer} and {@link String}.
- *
- *
- * @post return != null
- * @post (return instanceof Throwable) == isError()
- * @post (return instanceof Util.NullCellValue) == isNull()
- */
- Object getValue();
-
- /**
- * Return the cached formatted string, that survives an aggregate cache
- * clear.
- */
- String getCachedFormatString();
-
- /**
- * Returns the cell's value formatted according to the current format
- * string, and locale-specific settings such as currency symbol. The
- * current format string may itself be derived via an expression. For more
- * information about format strings, see {@link mondrian.util.Format}.
- */
- String getFormattedValue();
-
- /**
- * Returns whether the cell's value is null.
- */
- boolean isNull();
-
- /**
- * Returns whether the cell's calculation returned an error.
- */
- boolean isError();
-
- /**
- * Returns a SQL query that, when executed, returns drill through data
- * for this Cell.
- *
- * If the parameter {@code extendedContext} is true, then the query will
- * include all the levels (i.e. columns) of non-constraining members
- * (i.e. members which are at the "All" level).
- *
- *
If the parameter {@code extendedContext} is false, the query will
- * exclude the levels (coulmns) of non-constraining members.
- *
- *
The result is null if the cell is based upon a calculated member.
- */
- String getDrillThroughSQL(boolean extendedContext);
-
- /**
- * Returns true if drill through is possible for this Cell.
- * Returns false if the Cell is based on a calculated measure.
- *
- * @return Whether can drill through on this cell
- */
- boolean canDrillThrough();
-
- /**
- * Returns the number of fact table rows which contributed to this Cell.
- */
- int getDrillThroughCount();
-
- /**
- * Returns the value of a property.
- *
- * @param propertyName Case-sensitive property name
- * @return Value of property
- */
- Object getPropertyValue(String propertyName);
-
- /**
- * Returns the context member for a particular dimension.
- *
- * The member is defined as follows (note that there is always a
- * member):
- *
- * If the dimension appears on one of the visible axes, the context
- * member is simply the member on the current row or column.
- *
- * If the dimension appears in the slicer, the context member is the
- * member of that dimension in the slier.
- *
- * Otherwise, the context member is the default member of that
- * dimension (usually the 'all' member).
- *
- * @param hierarchy Hierarchy
- * @return current member of given hierarchy
- */
- Member getContextMember(Hierarchy hierarchy);
-
- /**
- * Helper method to implement {@link org.olap4j.Cell#setValue}.
- *
- * @param scenario Scenario
- * @param newValue New value
- * @param allocationPolicy Allocation policy
- * @param allocationArgs Arguments for allocation policy
- */
- void setValue(
- Scenario scenario,
- Object newValue,
- AllocationPolicy allocationPolicy,
- Object... allocationArgs);
-
- ISqlStatement drillThroughInternal(int maxRowCount, int firstRowOrdinal, List fields,
- boolean extendedContext, Logger logger);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/CellSet.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/CellSet.java
deleted file mode 100644
index 8c5abd8a0b..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/CellSet.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Copyright (c) 2024 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.result;
-
-import java.util.List;
-
-import org.eclipse.daanse.olap.api.Statement;
-
-public interface CellSet {
-
- CellSetMetaData getMetaData();
-
- List getAxes();
-
- CellSetAxis getFilterAxis();
-
- Cell getCell(List pos);
-
- Statement getStatement();
-
- void close();
-
- void execute();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/CellSetAxis.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/CellSetAxis.java
deleted file mode 100644
index a7f033414d..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/CellSetAxis.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2024 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.result;
-
-import java.util.List;
-import java.util.ListIterator;
-
-public interface CellSetAxis {
- IAxis getAxisOrdinal();
-
- CellSet getCellSet();
-
- CellSetAxisMetaData getAxisMetaData();
-
- List getPositions();
-
- int getPositionCount();
-
- ListIterator iterator();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/CellSetAxisMetaData.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/CellSetAxisMetaData.java
deleted file mode 100644
index b8675d3bd2..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/CellSetAxisMetaData.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright (c) 2024 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.result;
-
-import java.util.List;
-
-import org.eclipse.daanse.olap.api.element.Hierarchy;
-
-public interface CellSetAxisMetaData {
- IAxis getAxisOrdinal();
-
- List getHierarchies();
-
- List getProperties();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/CellSetMetaData.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/CellSetMetaData.java
deleted file mode 100644
index c5a3bf896c..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/CellSetMetaData.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2024 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.result;
-
-import java.util.List;
-
-import org.eclipse.daanse.olap.api.element.Cube;
-
-public interface CellSetMetaData {
- List getCellProperties();
-
- /**
- * Returns the Cube which was referenced in this statement.
- *
- * @return cube referenced in this statement
- */
- Cube getCube();
-
- /**
- * Returns a list of CellSetAxisMetaData describing each result axis.
- *
- * @return list of metadata describing each result axis
- */
- List getAxesMetaData();
-
- /**
- * Returns a CellSetAxisMetaData describing the filter axis. Never returns
- * null; if the MDX statement contains no WHERE clause, the description of
- * the filter contains no hierarchies.
- *
- * @return metadata describing filter axis
- */
- CellSetAxisMetaData getFilterAxisMetaData();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Datatype.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Datatype.java
deleted file mode 100644
index 9a44d04ef1..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Datatype.java
+++ /dev/null
@@ -1,209 +0,0 @@
-/*
- * Copyright (c) 2024 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.result;
-
-public enum Datatype {
- // The following values exactly match VARENUM
- // in Automation and may be used in VARIANT.
-
- INTEGER(3, "DBTYPE_I4", "A four-byte, signed integer: INTEGER"),
-
- DOUBLE(5, "DBTYPE_R8", "A double-precision floating-point value: Double"),
-
- CURRENCY(
- 6,
- "DBTYPE_CY",
- "A currency value: LARGE_INTEGER, Currency is a fixed-point number with "
- + "four digits to the right of the decimal point. It is stored in an "
- + "eight-byte signed integer, scaled by 10,000."),
-
- BOOLEAN(
- 11,
- "DBTYPE_BOOL",
- "A Boolean value stored in the same way as in Automation: VARIANT_BOOL; "
- + "0 means false and ~0 (bitwise, the value is not 0; that is, all bits "
- + "are set to 1) means true."),
-
- /**
- * Used by SQL Server for value.
- */
- VARIANT(12, "DBTYPE_VARIANT", "An Automation VARIANT"),
-
- /**
- * Used by SQL Server for font size.
- */
- UNSIGNED_SHORT(18, "DBTYPE_UI2", "A two-byte, unsigned integer"),
-
- /**
- * Used by SQL Server for colors, font flags and cell ordinal.
- */
- UNSIGNED_INTEGER(19, "DBTYPE_UI4", "A four-byte, unsigned integer"),
-
- // The following values exactly match VARENUM
- // in Automation but cannot be used in VARIANT.
-
- LARGE_INTEGER(
- 20,
- "DBTYPE_I8",
- "An eight-byte, signed integer: LARGE_INTEGER"),
-
- // The following values are not in VARENUM in OLE.
-
- STRING(
- 130,
- "DBTYPE_WSTR",
- "A null-terminated Unicode character string: wchar_t[length]; If "
- + "DBTYPE_WSTR is used by itself, the number of bytes allocated "
- + "for the string, including the null-termination character, is "
- + "specified by cbMaxLen in the DBBINDING structure. If "
- + "DBTYPE_WSTR is combined with DBTYPE_BYREF, the number of bytes "
- + "allocated for the string, including the null-termination character, "
- + "is at least the length of the string plus two. In either case, the "
- + "actual length of the string is determined from the bound length "
- + "value. The maximum length of the string is the number of allocated "
- + "bytes divided by sizeof(wchar_t) and truncated to the nearest "
- + "integer."),
-
- /**
- * Used by SAP BW. Represents a Character
- */
- ACCP(1000, "ACCP", "SAP BW Character"),
-
- /**
- * Used by SAP BW. Represents a CHAR
- */
- CHAR(1001, "CHAR", "SAP BW CHAR"),
-
- /**
- * Used by SAP BW. Represents a CHAR
- */
- CUKY(1002, "CUKY", "SAP BW CHAR"),
-
- /**
- * Used by SAP BW. Represents a Currency - Packed decimal, Integer
- */
- CURR(1003, "CURR", "SAP BW Currency - Packed decimal, Integer"),
-
- /**
- * Used by SAP BW. Represents a Date
- */
- DATS(1004, "DATS", "SAP BW Date"),
-
- /**
- * Used by SAP BW. Represents a Decimal
- */
- DEC(1005, "DEC", "SAP BW Decimal"),
-
- /**
- * Used by SAP BW. Represents a Point
- */
- FLTP(1006, "FLTP", "SAP BW Floating Point"),
-
- /**
- * Used by SAP BW. Represents a Byte
- */
- INT1(1007, "INT1", "SAP BW Byte"),
-
- /**
- * Used by SAP BW. Represents a Small integer
- */
- INT2(1008, "INT2", "SAP BW Small integer"),
-
- /**
- * Used by SAP BW. Represents an Integer
- */
- INT4(1009, "INT4", "SAP BW Integer"),
-
- /**
- * Used by SAP BW. Represents a Text
- */
- LCHR(1010, "LCHR", "SAP BW Text"),
-
- /**
- * Used by SAP BW. Represents a Numeric
- */
- NUMC(1011, "NUMC", "SAP BW Numeric"),
-
- /**
- * Used by SAP BW. Represents a Tiny Int
- */
- PREC(1012, "PREC", "SAP BW Tiny Int"),
-
- /**
- * Used by SAP BW. Represents a QUAN Integer
- */
- QUAN(1013, "QUAN", "SAP BW QUAN Integer"),
-
- /**
- * Used by SAP BW. Represents a String
- */
- SSTR(1014, "SSTR", "SAP BW String"),
-
- /**
- * Used by SAP BW. Represents a Long String
- */
- STRG(1015, "STRG", "SAP BW Long String"),
-
- /**
- * Used by SAP BW. Represents a Time
- */
- TIMS(1016, "TIMS", "SAP BW Time"),
-
- /**
- * Used by SAP BW. Represents a Varchar
- */
- VARC(1017, "VARC", "SAP BW Varchar"),
-
- /**
- * Used by SAP BW. Represents a Long String for Units
- */
- UNIT(1018, "UNIT", "SAP BW Long String for Units");
-
- private final int xmlaOrdinal;
- private String dbTypeIndicator;
- private String description;
-
- Datatype(
- int xmlaOrdinal,
- String dbTypeIndicator,
- String description)
- {
- this.xmlaOrdinal = xmlaOrdinal;
- this.dbTypeIndicator = dbTypeIndicator;
- this.description = description;
- }
-
- /**
- * The internal name of this Datatype.
- * Might not be unique across Datatype instances.
- */
- public String xmlaName() {
- return dbTypeIndicator;
- }
-
- /**
- * Human readable description of a Datatype instance.
- */
- public String getDescription() {
- return description;
- }
-
- /**
- * Unique identifier of a Datatype instance.
- */
- public int xmlaOrdinal() {
- return xmlaOrdinal;
- }
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/IAxis.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/IAxis.java
deleted file mode 100644
index eec6bea968..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/IAxis.java
+++ /dev/null
@@ -1,184 +0,0 @@
-/*
- * Copyright (c) 2024 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.result;
-
-import java.util.Locale;
-
-public interface IAxis {
-
- /**
- * Abbreviation for {@link IAxis.Standard#FILTER}.
- */
- IAxis.Standard FILTER = IAxis.Standard.FILTER;
-
- /**
- * Abbreviation for {@link IAxis.Standard#COLUMNS}.
- */
- IAxis.Standard COLUMNS = IAxis.Standard.COLUMNS;
-
- /**
- * Abbreviation for {@link IAxis.Standard#ROWS}.
- */
- IAxis.Standard ROWS = IAxis.Standard.ROWS;
-
- /**
- * Abbreviation for {@link IAxis.Standard#PAGES}.
- */
- IAxis.Standard PAGES = IAxis.Standard.PAGES;
-
- /**
- * Abbreviation for {@link IAxis.Standard#CHAPTERS}.
- */
- IAxis.Standard SECTIONS = IAxis.Standard.SECTIONS;
-
- /**
- * Abbreviation for {@link IAxis.Standard#FILTER}.
- */
- IAxis.Standard CHAPTERS = IAxis.Standard.CHAPTERS;
-
- /**
- * Returns the name of this axis, e.g. "COLUMNS", "FILTER", "AXIS(17)".
- *
- * @return Name of the axis
- */
- String name();
-
- /**
- * Returns whether this is the filter (slicer) axis.
- *
- * @return whether this is the filter axis
- */
- boolean isFilter();
-
-
- /**
- * Returns the ordinal which is to be used for retrieving this axis from
- * the {@link org.olap4j.CellSet#getAxes()}, or retrieving its
- * coordinate from {@link Cell#getCoordinateList()}.
- *
- * For example:
- *
- * -1 {@link IAxis.Standard#FILTER FILTER}
- * 0 {@link IAxis.Standard#COLUMNS COLUMNS}
- * 1 {@link IAxis.Standard#ROWS ROWS}
- * 2 {@link IAxis.Standard#PAGES PAGES}
- * 3 {@link IAxis.Standard#CHAPTERS CHAPTERS}
- * 4 {@link IAxis.Standard#SECTIONS SECTIONS}
- * 5 {@link IAxis.Standard#SECTIONS SECTIONS}
- * 6 AXES(6)
- * 123 AXES(123)
- *
- *
- * @return ordinal of this axis
- */
- int axisOrdinal();
-
- /**
- * Returns localized name for this Axis.
- *
- * Examples: "FILTER", "ROWS", "COLUMNS", "AXIS(10)".
- *
- * @param locale Locale for which to give the name
- * @return localized name for this Axis
- */
- String getCaption(Locale locale);
-
- /**
- * Enumeration of standard, named axes descriptors.
- */
- public enum Standard implements IAxis {
- /**
- * Filter axis, also known as the slicer axis, and represented by the
- * WHERE clause of an MDX query.
- */
- FILTER,
-
- /** COLUMNS axis, also known as X axis and AXIS(0). */
- COLUMNS,
-
- /** ROWS axis, also known as Y axis and AXIS(1). */
- ROWS,
-
- /** PAGES axis, also known as AXIS(2). */
- PAGES,
-
- /** CHAPTERS axis, also known as AXIS(3). */
- CHAPTERS,
-
- /** SECTIONS axis, also known as AXIS(4). */
- SECTIONS;
-
- public int axisOrdinal() {
- return ordinal() - 1;
- }
-
- public boolean isFilter() {
- return this == FILTER;
- }
-
- public String getCaption(Locale locale) {
- // TODO: localize
- return name();
- }
- }
-
- /**
- * Container class for various Axis factory methods.
- */
- class Factory {
- private static final IAxis.Standard[] STANDARD_VALUES = IAxis.Standard.values();
-
- /**
- * Returns the axis with a given ordinal.
- *
- *
For example, {@code forOrdinal(0)} returns the COLUMNS axis;
- * {@code forOrdinal(-1)} returns the SLICER axis;
- * {@code forOrdinal(100)} returns AXIS(100).
- *
- * @param ordinal Axis ordinal
- * @return Axis whose ordinal is as given
- */
- public static IAxis forOrdinal(final int ordinal) {
- if (ordinal < -1) {
- throw new IllegalArgumentException(
- "Axis ordinal must be -1 or higher");
- }
- if (ordinal + 1 < STANDARD_VALUES.length) {
- return STANDARD_VALUES[ordinal + 1];
- }
- return new IAxis() {
- public String toString() {
- return name();
- }
-
- public String name() {
- return "AXIS(" + ordinal + ")";
- }
-
- public boolean isFilter() {
- return false;
- }
-
- public int axisOrdinal() {
- return ordinal;
- }
-
- public String getCaption(Locale locale) {
- // TODO: localize
- return name();
- }
- };
- }
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/IMondrianOlap4jProperty.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/IMondrianOlap4jProperty.java
deleted file mode 100644
index 1d75aa6054..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/IMondrianOlap4jProperty.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (c) 2024 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-package org.eclipse.daanse.olap.api.result;
-
-import org.eclipse.daanse.olap.api.element.Level;
-
-public interface IMondrianOlap4jProperty extends Property{
- /**
- * @return {@mondrian.olap.Level}
- */
- Level getLevel();
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Position.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Position.java
deleted file mode 100644
index 2fd4c60890..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Position.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2001-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * Contributors:
- * SmartCity Jena - refactor, clean API
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-
-package org.eclipse.daanse.olap.api.result;
-
-import java.util.List;
-
-import org.eclipse.daanse.olap.api.element.Member;
-
-/**
- * A Position is an item on an {@link Axis}. It contains
- * one or more {@link Member}s.
- *
- * @author jhyde
- * @since 6 August, 2001
- */
-public interface Position extends List {
-
- List getMembers();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Property.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Property.java
deleted file mode 100644
index 01d810a0c6..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Property.java
+++ /dev/null
@@ -1,709 +0,0 @@
-/*
- * Licensed to Julian Hyde under one or more contributor license
- * agreements. See the NOTICE file distributed with this work for
- * additional information regarding copyright ownership.
- *
- * Julian Hyde licenses this file to you under the Apache License,
- * Version 2.0 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at:
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.result;
-
-import java.util.Collections;
-import java.util.EnumSet;
-import java.util.Set;
-
-public interface Property {
-
- String getName();
-
- Datatype getDatatype();
-
- Set getType();
-
- String getCaption();
-
-
-
- /**
- * Enumeration of aspects of the type of a Property. In particular, whether
- * it belongs to a member or a cell.
- *
- * The values are as specified by XMLA for the PROPERTY_TYPE attribute
- * of the MDSCHEMA_PROPERTIES data set.
- * For example, XMLA specifies that the value 9 (0x1 | 0x8) means that a
- * property belongs to a member and is a binary large object (BLOB).
- * In this case, {@link Property#getType} will return the {@link Set}
- * {{@link #MEMBER}, {@link #BLOB}}.
- */
- enum TypeFlag {
- /**
- * Identifies a property of a member. This property can be used in the
- * DIMENSION PROPERTIES clause of the SELECT statement.
- */
- MEMBER(1),
-
- /**
- * Identifies a property of a cell. This property can be used in the
- * CELL PROPERTIES clause that occurs at the end of the SELECT
- * statement.
- */
- CELL(2),
-
- /**
- * Identifies an internal property.
- */
- SYSTEM(4),
-
- /**
- * Identifies a property which contains a binary large object (blob).
- */
- BLOB(8);
-
- private final int xmlaOrdinal;
-
- public static final Set CELL_TYPE_FLAG =
- Collections.unmodifiableSet(
- EnumSet.of(Property.TypeFlag.CELL));
- public static final Set MEMBER_TYPE_FLAG =
- Collections.unmodifiableSet(
- EnumSet.of(Property.TypeFlag.MEMBER));
-
-
-
- private TypeFlag(int xmlaOrdinal) {
- this.xmlaOrdinal = xmlaOrdinal;
- }
-
- public String xmlaName() {
- return "MDPROP_" + name();
- }
-
- public String getDescription() {
- return null;
- }
-
- public int xmlaOrdinal() {
- return xmlaOrdinal;
- }
-
- }
-
-
- /**
- * Enumeration of the system properties available for every .
- *
- * The following properties are mandatory for members:
- * {@link #CATALOG_NAME}
- * {@link #SCHEMA_NAME}
- * {@link #CUBE_NAME}
- * {@link #DIMENSION_UNIQUE_NAME}
- * {@link #HIERARCHY_UNIQUE_NAME}
- * {@link #LEVEL_UNIQUE_NAME}
- * {@link #LEVEL_NUMBER}
- * {@link #MEMBER_UNIQUE_NAME}
- * {@link #MEMBER_NAME}
- * {@link #MEMBER_TYPE}
- * {@link #MEMBER_GUID}
- * {@link #MEMBER_CAPTION}
- * {@link #MEMBER_ORDINAL}
- * {@link #CHILDREN_CARDINALITY}
- * {@link #PARENT_LEVEL}
- * {@link #PARENT_UNIQUE_NAME}
- * {@link #PARENT_COUNT}
- * {@link #DESCRIPTION}
- *
- */
- enum StandardMemberProperty implements Property {
-
- /**
- * Definition of the property which
- * holds the name of the current catalog.
- */
- CATALOG_NAME(
- Datatype.STRING,
- false,
- null,
- "Optional. The name of the catalog to which this member belongs. "
- + "NULL if the provider does not support catalogs."),
-
- /**
- * Definition of the property which
- * holds the name of the current schema.
- */
- SCHEMA_NAME(
- Datatype.STRING,
- false,
- null,
- "Optional. The name of the schema to which this member belongs. "
- + "NULL if the provider does not support schemas."),
-
- /**
- * Definition of the property which
- * holds the name of the current cube.
- */
- CUBE_NAME(
- Datatype.STRING,
- false,
- null, "Required. Name of the cube to which this member belongs."),
-
- /**
- * Definition of the property which
- * holds the unique name of the current dimension.
- */
- DIMENSION_UNIQUE_NAME(
- Datatype.STRING,
- false,
- null,
- "Required. Unique name of the dimension to which this member "
- + "belongs. For providers that generate unique names by "
- + "qualification, each component of this name is delimited."),
-
- /**
- * Definition of the property which
- * holds the unique name of the current hierarchy.
- */
- HIERARCHY_UNIQUE_NAME(
- Datatype.STRING,
- false,
- null,
- "Required. Unique name of the hierarchy. If the member belongs to "
- + "more than one hierarchy, there is one row for each hierarchy "
- + "to which it belongs. For providers that generate unique names "
- + "by qualification, each component of this name is delimited."),
-
- /**
- * Definition of the property which
- * holds the unique name of the current level.
- */
- LEVEL_UNIQUE_NAME(
- Datatype.STRING,
- false,
- null,
- "Required. Unique name of the level to which the member belongs. "
- + "For providers that generate unique names by qualification, "
- + "each component of this name is delimited."),
-
- /**
- * Definition of the property which
- * holds the ordinal of the current level.
- */
- LEVEL_NUMBER(
- Datatype.UNSIGNED_INTEGER,
- false,
- null,
- "Required. The distance of the member from the root of the "
- + "hierarchy. The root level is zero."),
-
- /**
- * Definition of the property which
- * holds the ordinal of the current member.
- */
- MEMBER_ORDINAL(
- Datatype.UNSIGNED_INTEGER,
- false,
- null,
- "Required. Ordinal number of the member. Sort rank of the member "
- + "when members of this dimension are sorted in their natural "
- + "sort order. If providers do not have the concept of natural "
- + "ordering, this should be the rank when sorted by MEMBER_NAME."),
-
- /**
- * Definition of the property which
- * holds the name of the current member.
- */
- MEMBER_NAME(
- Datatype.STRING,
- false,
- null,
- "Required. Name of the member."),
-
- /**
- * Definition of the property which
- * holds the unique name of the current member.
- */
- MEMBER_UNIQUE_NAME(
- Datatype.STRING,
- false,
- null,
- "Required. Unique name of the member. For providers that generate "
- + "unique names by qualification, each component of this name is "
- + "delimited."),
-
- /**
- * Definition of the property which
- * holds the type of the member.
- */
- MEMBER_TYPE(
- Datatype.STRING,
- false,
- null,
- "Required. Type of the member. Can be one of the following values: "
- + "MDMEMBER_Datatype.TYPE_REGULAR, MDMEMBER_Datatype.TYPE_ALL, "
- + "MDMEMBER_Datatype.TYPE_FORMULA, MDMEMBER_Datatype.TYPE_MEASURE, "
- + "MDMEMBER_Datatype.TYPE_UNKNOWN. MDMEMBER_Datatype.TYPE_FORMULA "
- + "takes precedence over MDMEMBER_Datatype.TYPE_MEASURE. "
- + "Therefore, if there is a formula (calculated) member on the "
- + "Measures dimension, it is listed as "
- + "MDMEMBER_Datatype.TYPE_FORMULA."),
-
- /**
- * Definition of the property which
- * holds the GUID of the member
- */
- MEMBER_GUID(
- Datatype.STRING,
- false,
- null,
- "Optional. Member GUID. NULL if no GUID exists."),
-
- /**
- * Definition of the property which
- * holds the label or caption associated with the member, or the
- * member's name if no caption is defined.
- */
- MEMBER_CAPTION(
- Datatype.STRING,
- false,
- null,
- "Required. A label or caption associated with the member. Used "
- + "primarily for display purposes. If a caption does not exist, "
- + "MEMBER_NAME is returned."),
-
- /**
- * Definition of the property which holds the
- * number of children this member has.
- */
- CHILDREN_CARDINALITY(
- Datatype.UNSIGNED_INTEGER,
- false,
- null,
- "Required. Number of children that the member has. This can be an "
- + "estimate, so consumers should not rely on this to be the exact "
- + "count. Providers should return the best estimate possible."),
-
- /**
- * Definition of the property which holds the
- * distance from the root of the hierarchy of this member's parent.
- */
- PARENT_LEVEL(
- Datatype.UNSIGNED_INTEGER,
- false,
- null,
- "Required. The distance of the member's parent from the root level "
- + "of the hierarchy. The root level is zero."),
-
- /**
- * Definition of the property which holds the
- * Name of the current catalog.
- */
- PARENT_UNIQUE_NAME(
- Datatype.STRING,
- false,
- null,
- "Required. Unique name of the member's parent. NULL is returned "
- + "for any members at the root level. For providers that generate "
- + "unique names by qualification, each component of this name is "
- + "delimited."),
-
- /**
- * Definition of the property which holds the
- * number of parents that this member has. Generally 1, or 0
- * for root members.
- */
- PARENT_COUNT(
- Datatype.UNSIGNED_INTEGER,
- false,
- null,
- "Required. Number of parents that this member has."),
-
- /**
- * Definition of the property which holds the
- * description of this member.
- */
- DESCRIPTION(
- Datatype.STRING,
- false,
- null,
- "Optional. A human-readable description of the member."),
-
- /**
- * Definition of the internal property which holds the
- * name of the system property which determines whether to show a member
- * (especially a measure or calculated member) in a user interface such
- * as JPivot.
- */
- $visible(
- Datatype.BOOLEAN,
- true,
- null,
- null),
-
- /**
- * Definition of the internal property which holds the
- * value of the member key in the original data type. MEMBER_KEY is for
- * backward-compatibility. MEMBER_KEY has the same value as KEY0 for
- * non-composite keys, and MEMBER_KEY property is null for composite
- * keys.
- */
- MEMBER_KEY(
- Datatype.VARIANT,
- true,
- null,
- "Optional. The value of the member key. Null for composite keys."),
-
- /**
- * Definition of the boolean property that indicates whether
- * a member is a placeholder member for an empty position in a
- * dimension hierarchy.
- */
- IS_PLACEHOLDERMEMBER(
- Datatype.BOOLEAN,
- false,
- null,
- "Required. Whether the member is a placeholder member for an empty "
- + "position in a dimension hierarchy."),
-
- /**
- * Definition of the property that indicates whether the member is a
- * data member.
- */
- IS_DATAMEMBER(
- Datatype.BOOLEAN,
- false,
- null,
- "Required. whether the member is a data member"),
-
- /**
- * Definition of the property which
- * holds the level depth of a member.
- *
- * Caution: Level depth of members in parent-child hierarchy isn't
- * from their levels. It's calculated from the underlying data
- * dynamically.
- */
- DEPTH(
- Datatype.UNSIGNED_INTEGER,
- true,
- null,
- "The level depth of a member"),
-
- /**
- * Definition of the property which
- * holds the DISPLAY_INFO required by XML/A.
- *
- *
Caution: This property's value is calculated based on a specified
- * MDX query, so its value is dynamic at runtime.
- */
- DISPLAY_INFO(
- Datatype.UNSIGNED_INTEGER,
- false,
- null,
- "Display instruction of a member for XML/A"),
-
- /**
- * Definition of the property which
- * holds the value of a cell. Is usually numeric (since most measures
- * are numeric) but is occasionally another type.
- */
- VALUE(
- Datatype.VARIANT,
- false,
- null,
- "The unformatted value of the cell.");
-
- private final Datatype type;
- private final String description;
- private final boolean internal;
-
- private StandardMemberProperty(
- Datatype type,
- boolean internal,
- Class extends Enum> enumClazz,
- String description)
- {
-// assert ordinal == ordinal();
- this.internal = internal;
- this.type = type;
- this.description = description;
- }
-
- public String getName() {
- return name();
- }
-
- public String getUniqueName() {
- return name();
- }
-
- public String getCaption() {
- // NOTE: This caption will be the same in all locales, since
- // StandardMemberProperty has no way of deducing the current
- // connection. Providers that wish to localize the caption of
- // built-in properties should create a wrapper around
- // StandardMemberProperty that is aware of the current connection or
- // locale.
- return name();
- }
-
- public String getDescription() {
- // NOTE: This description will be the same in all locales, since
- // StandardMemberProperty has no way of deducing the current
- // connection. Providers that wish to localize the description of
- // built-in properties should create a wrapper around
- // StandardCellProperty that is aware of the current connection or
- // locale.
- return description;
- }
-
- public Datatype getDatatype() {
- return type;
- }
-
- public Set getType() {
- return TypeFlag.MEMBER_TYPE_FLAG;
- }
-
- public boolean isInternal() {
- return internal;
- }
-
- public boolean isVisible() {
- return !internal;
- }
- }
-
-
- /**
- * Enumeration of the system properties available for every
- * {@link org.olap4j.Cell}.
- *
- * The following propertiess are mandatory for cells:
- * {@link #BACK_COLOR}
- * {@link #CELL_EVALUATION_LIST}
- * {@link #CELL_ORDINAL}
- * {@link #FORE_COLOR}
- * {@link #FONT_NAME}
- * {@link #FONT_SIZE}
- * {@link #FONT_FLAGS}
- * {@link #FORMAT_STRING}
- * {@link #FORMATTED_VALUE}
- * {@link #NON_EMPTY_BEHAVIOR}
- * {@link #SOLVE_ORDER}
- * {@link #VALUE}
- *
- */
- enum StandardCellProperty implements Property {
- BACK_COLOR(
- Datatype.STRING,
- false,
- "The background color for displaying the VALUE or FORMATTED_VALUE "
- + "property. For more information, see FORE_COLOR and BACK_COLOR "
- + "Contents."),
-
- CELL_EVALUATION_LIST(
- Datatype.STRING,
- false,
- "The semicolon-delimited list of evaluated formulas applicable to "
- + "the cell, in order from lowest to highest solve order. For more "
- + "information about solve order, see Understanding Pass Order and "
- + "Solve Order"),
-
- CELL_ORDINAL(
- Datatype.UNSIGNED_INTEGER,
- false,
- "The ordinal number of the cell in the dataset."),
-
- FORE_COLOR(
- Datatype.STRING,
- false,
- "The foreground color for displaying the VALUE or FORMATTED_VALUE "
- + "property. For more information, see FORE_COLOR and BACK_COLOR "
- + "Contents."),
-
- FONT_NAME(
- Datatype.STRING,
- false,
- "The font to be used to display the VALUE or FORMATTED_VALUE "
- + "property."),
-
- FONT_SIZE(
- Datatype.STRING,
- false,
- "Font size to be used to display the VALUE or FORMATTED_VALUE "
- + "property."),
-
- FONT_FLAGS(
- Datatype.UNSIGNED_INTEGER,
- false,
- "The bitmask detailing effects on the font. The value is the "
- + "result of a bitwise OR operation of one or more of the "
- + "following constants: MDFF_BOLD = 1, MDFF_ITALIC = 2, "
- + "MDFF_UNDERLINE = 4, MDFF_STRIKEOUT = 8. For example, the value "
- + "5 represents the combination of bold (MDFF_BOLD) and underline "
- + "(MDFF_UNDERLINE) font effects."),
-
- /**
- * Definition of the property which
- * holds the formatted value of a cell.
- */
- FORMATTED_VALUE(
- Datatype.STRING,
- false,
- "The character string that represents a formatted display of the "
- + "VALUE property."),
-
- /**
- * Definition of the property which
- * holds the format string used to format cell values.
- */
- FORMAT_STRING(
- Datatype.STRING,
- false,
- "The format string used to create the FORMATTED_VALUE property "
- + "value. For more information, see FORMAT_STRING Contents."),
-
- NON_EMPTY_BEHAVIOR(
- Datatype.STRING,
- false,
- "The measure used to determine the behavior of calculated members "
- + "when resolving empty cells."),
-
- /**
- * Definition of the property which
- * determines the solve order of a calculated member with respect to
- * other calculated members.
- */
- SOLVE_ORDER(
- Datatype.INTEGER,
- false,
- "The solve order of the cell."),
-
- /**
- * Definition of the property which
- * holds the value of a cell. Is usually numeric (since most measures
- * are numeric) but is occasionally another type.
- */
- VALUE(
- Datatype.VARIANT,
- false,
- "The unformatted value of the cell."),
-
- /**
- * Definition of the property which
- * holds the datatype of a cell. Valid values are "String",
- * "Numeric", "Integer". The property's value derives from the
- * "datatype" attribute of the "Measure" element; if the
- * datatype attribute is not specified, the datatype is
- * "Numeric" by default, except measures whose aggregator is
- * "Count", whose datatype is "Integer".
- */
- DATATYPE(
- Datatype.STRING,
- false,
- "The datatype of the cell."),
-
- LANGUAGE(
- Datatype.UNSIGNED_INTEGER,
- false,
- "The locale where the FORMAT_STRING will be applied. LANGUAGE is "
- + "usually used for currency conversion."),
-
- ACTION_TYPE(
- Datatype.INT4,
- false,
- "A bitmask that indicates which types of actions exist on the "
- + "cell."),
-
- UPDATEABLE(
- Datatype.UNSIGNED_INTEGER,
- false,
- "A value that indicates whether the cell can be updated.");
-
- /**
- * The datatype of the property.
- */
- private final Datatype type;
- private final String description;
- private final boolean internal;
-
- private StandardCellProperty(
- Datatype type,
- boolean internal,
- String description)
- {
- this.type = type;
- this.internal = internal;
- this.description = description;
- }
-
- public Datatype getDatatype() {
- return type;
- }
-
- public Set getType() {
- return TypeFlag.CELL_TYPE_FLAG;
- }
-
- public String getName() {
- return name();
- }
-
- public String getUniqueName() {
- return name();
- }
-
- public String getCaption() {
- // NOTE: This caption will be the same in all locales, since
- // StandardCellProperty has no way of deducing the current
- // connection. Providers that wish to localize the caption of
- // built-in properties should create a wrapper around
- // StandardCellProperty that is aware of the current connection or
- // locale.
- return name();
- }
-
- public String getDescription() {
- // NOTE: This description will be the same in all locales, since
- // StandardCellProperty has no way of deducing the current
- // connection. Providers that wish to localize the description of
- // built-in properties should create a wrapper around
- // StandardCellProperty that is aware of the current connection or
- // locale.
- return description;
- }
-
- public boolean isInternal() {
- return internal;
- }
-
- public boolean isVisible() {
- return !internal;
- }
- }
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Result.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Result.java
deleted file mode 100644
index ad78037ee2..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Result.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2001-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara and others
- * All Rights Reserved.
- *
- * Contributors:
- * SmartCity Jena - refactor, clean API
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-
-package org.eclipse.daanse.olap.api.result;
-
-import java.io.PrintWriter;
-
-import org.eclipse.daanse.olap.api.Connection;
-import org.eclipse.daanse.olap.api.Execution;
-import org.eclipse.daanse.olap.api.element.Member;
-import org.eclipse.daanse.olap.api.query.component.Query;
-
-/**
- * A Result is the result of running an MDX query. See {@link
- * Connection#execute}.
- *
- * @author jhyde
- * @since 6 August, 2001
- */
-public interface Result {
- /** Returns the query which generated this result. */
- Query getQuery();
- /** Returns the non-slicer axes. */
- Axis[] getAxes();
- /** Returns the slicer axis. */
- Axis getSlicerAxis();
- /** Returns the cell at a given set of coordinates. For example, in a result
- * with 4 columns and 6 rows, the top-left cell has coordinates [0, 0],
- * and the bottom-right cell has coordinates [3, 5]. */
- Cell getCell(int[] pos);
- void print(PrintWriter pw);
- void close();
-
- Execution getExecution();
-
- Member[] getCellMembers(int[] coordinates);
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Scenario.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Scenario.java
deleted file mode 100644
index d20ec63398..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/Scenario.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
-* Copyright (c) 2023 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-* Stefan Bischof (bipolis.org) - initial
-*/
-package org.eclipse.daanse.olap.api.result;
-
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.daanse.olap.api.Connection;
-import org.eclipse.daanse.olap.api.DataTypeJdbc;
-import org.eclipse.daanse.olap.api.element.Member;
-
-/**
- * Context for a set of writeback operations.
- *
- * An analyst performing a what-if analysis would first create a scenario,
- * or open an existing scenario, then modify a sequence of cell values.
- *
- *
Some OLAP engines allow scenarios to be saved (to a file, or perhaps to
- * the database) and restored in a future session.
- *
- *
Multiple scenarios may be open at the same time, by different users of
- * the OLAP engine.
- *
- * @see AllocationPolicy
- *
- * @author jhyde
- * @since 24 April, 2009
- */
-public interface Scenario {
- /**
- * Returns the unique identifier of this Scenario.
- *
- *
The format of the string returned is implementation defined. Client
- * applications must not make any assumptions about the structure or
- * contents of such strings.
- *
- * @return Unique identifier of this Scenario.
- */
- String getId();
-
- List getWritebackCells();
-
- void setCellValue(
- Connection connection,
- List members,
- double newValue,
- double currentValue,
- AllocationPolicy allocationPolicy,
- Object[] allocationArgs);
-
- List>> getSessionValues();
-
- void clear();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/WritebackCell.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/WritebackCell.java
deleted file mode 100644
index 02160f04f5..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/WritebackCell.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
-* Copyright (c) 2025 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-* Stefan Bischof (bipolis.org) - initial
-*/
-package org.eclipse.daanse.olap.api.result;
-
-import org.eclipse.daanse.olap.api.element.Member;
-
-public interface WritebackCell {
-
- double getNewValue();
-
- double getCurrentValue();
-
- AllocationPolicy getAllocationPolicy();
-
- Member[] getMembersByOrdinal();
-
- double getAtomicCellCount();
-
- /**
- * Returns the amount by which the cell value has increased with this override.
- *
- * @return Amount by which value has increased
- */
- double getOffset();
-
- CellRelation getRelationTo(Member[] members);
-
- /**
- * Decribes the relationship between two cells.
- */
- enum CellRelation {
- ABOVE, EQUAL, BELOW, NONE
- }
-
-}
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/package-info.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/package-info.java
deleted file mode 100644
index afcebff554..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/result/package-info.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-* Copyright (c) 2022 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-@org.osgi.annotation.bundle.Export
-@org.osgi.annotation.versioning.Version("0.0.1")
-package org.eclipse.daanse.olap.api.result;
\ No newline at end of file
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/BooleanType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/BooleanType.java
deleted file mode 100644
index ae162a2657..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/BooleanType.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.type;
-
-
-public class BooleanType extends ScalarType {
-
- public static final BooleanType INSTANCE = new BooleanType();
-
- private BooleanType() {
- super("BOOLEAN");
- }
-
- @Override
- public boolean equals(Object obj) {
- return obj instanceof BooleanType;
- }
-
- @Override
- public int hashCode() {
- return super.hashCode();
- }
-
- @Override
- public boolean isInstance(Object value) {
- return value instanceof Boolean;
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/CubeType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/CubeType.java
deleted file mode 100644
index fee9228283..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/CubeType.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.type;
-
-import org.eclipse.daanse.olap.api.element.Cube;
-import org.eclipse.daanse.olap.api.element.Dimension;
-import org.eclipse.daanse.olap.api.element.Hierarchy;
-import org.eclipse.daanse.olap.api.element.Level;
-
-/**
- * The type of an expression which represents a Cube or Virtual Cube.
- *
- * @author jhyde
- * @since Feb 17, 2005
- */
-public class CubeType implements Type {
- private final Cube cube;
-
- /**
- * Creates a type representing a cube.
- */
- public CubeType(Cube cube) {
- this.cube = cube;
- }
-
- /**
- * Returns the cube.
- *
- * @return Cube
- */
- public Cube getCube() {
- return cube;
- }
-
- @Override
- public boolean usesDimension(Dimension dimension, boolean definitely) {
- return false;
- }
-
- @Override
- public boolean usesHierarchy(Hierarchy hierarchy, boolean definitely) {
- return false;
- }
-
- @Override
- public Dimension getDimension() {
- return null;
- }
-
- @Override
- public Hierarchy getHierarchy() {
- return null;
- }
-
- @Override
- public Level getLevel() {
- return null;
- }
-
- @Override
- public int hashCode() {
- return cube.hashCode();
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof CubeType that) {
- return this.cube.equals(that.cube);
- } else {
- return false;
- }
- }
-
- @Override
- public Type computeCommonType(Type type, int[] conversionCount) {
- return this.equals(type)
- ? this
- : null;
- }
-
- @Override
- public boolean isInstance(Object value) {
- return value instanceof Cube;
- }
-
- @Override
- public int getArity() {
- // not meaningful; cube cannot be used in an expression
- throw new UnsupportedOperationException();
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/DateTimeType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/DateTimeType.java
deleted file mode 100644
index e2b34e23d4..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/DateTimeType.java
+++ /dev/null
@@ -1,50 +0,0 @@
- /*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (c) 2002-2017 Hitachi Vantara.. All rights reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.type;
-
-
-public class DateTimeType extends ScalarType {
-
- public static final DateTimeType INSTANCE = new DateTimeType();
-
- private DateTimeType() {
- super("DATETIME");
- }
-
- @Override
- public boolean equals(Object obj) {
- return obj instanceof DateTimeType;
- }
-
- @Override
- public int hashCode() {
- return super.hashCode();
- }
-
- @Override
- public boolean isInstance(Object value) {
- return value instanceof java.util.Date;
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/DecimalType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/DecimalType.java
deleted file mode 100644
index 83da24c0db..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/DecimalType.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.type;
-
-import java.util.Objects;
-
-/**
- * Subclass of {@link NumericType} which guarantees fixed number of decimal
- * places. In particular, a decimal with zero scale is an integer.
- *
- * @author jhyde
- * @since May 3, 2005
- */
-public class DecimalType extends NumericType {
- private final int precision;
- private final int scale;
-
- /**
- * Creates a decimal type with precision and scale.
- *
- * Examples:
- * 123.45 has precision 5, scale 2.
- * 12,345,000 has precision 5, scale -3.
- *
- *
- * The largest value is 10 ^ (precision - scale). Hence the largest
- * DECIMAL(5, -3) value is 10 ^ 8.
- *
- * @param precision Maximum number of decimal digits which a value of
- * this type can have.
- * Must be greater than zero.
- * Use {@link Integer#MAX_VALUE} if the precision is unbounded.
- * @param scale Number of digits to the right of the decimal point.
- */
- public DecimalType(int precision, int scale) {
- super(
- precision == Integer.MAX_VALUE
- ? "DecimalType(" + scale + ")"
- : "DecimalType(" + precision + ", " + scale + ")");
- assert precision>0;
- this.precision = precision;
- this.scale = scale;
- }
-
- /**
- * Returns the maximum number of decimal digits which a value of
- * this type can have.
- *
- * @return precision of this type
- */
- public int getPrecision() {
- return precision;
- }
-
- /**
- * Returns the number of digits to the right of the decimal point.
- *
- * @return scale of this type
- */
- public int getScale() {
- return scale;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof DecimalType that) {
- return this.precision == that.precision
- && this.scale == that.scale;
- }
- return false;
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(super.hashCode(), precision, scale);
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/DimensionType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/DimensionType.java
deleted file mode 100644
index 34e9ef3d75..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/DimensionType.java
+++ /dev/null
@@ -1,155 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.type;
-
-import java.util.Objects;
-
-import org.eclipse.daanse.olap.api.element.Dimension;
-import org.eclipse.daanse.olap.api.element.Hierarchy;
-import org.eclipse.daanse.olap.api.element.Level;
-
-
-/**
- * The type of an expression which represents a Dimension.
- *
- * @author jhyde
- * @since Feb 17, 2005
- */
-public class DimensionType implements Type {
- private final Dimension dimension;
- private final String digest;
-
- public static final DimensionType Unknown = new DimensionType(null);
-
- /**
- * Creates a type representing a dimension.
- *
- * @param dimension Dimension that values of this type must belong to, or
- * null if the dimension is unknown
- */
- public DimensionType(Dimension dimension) {
- this.dimension = dimension;
- StringBuilder buf = new StringBuilder("DimensionType<");
- if (dimension != null) {
- buf.append("dimension=").append(dimension.getUniqueName());
- }
- buf.append(">");
- this.digest = buf.toString();
- }
-
- public static DimensionType forDimension(Dimension dimension) {
- return new DimensionType(dimension);
- }
-
- public static DimensionType forType(Type type) {
- return new DimensionType(type.getDimension());
- }
-
- @Override
- public boolean usesDimension(Dimension dimension, boolean definitely) {
- // REVIEW: Should be '!definitely'?
- return this.dimension == dimension
- || (definitely && this.dimension == null);
- }
-
- @Override
- public boolean usesHierarchy(Hierarchy hierarchy, boolean definitely) {
- // If hierarchy belongs to this type's dimension, we might use it.
- return hierarchy.getDimension() == this.dimension
- && !definitely;
- }
-
- @Override
- public Hierarchy getHierarchy() {
- if (dimension == null) {
- return null;
- } else {
- return dimension.getHierarchy();
- }
- }
-
- @Override
- public Level getLevel() {
- return null;
- }
-
- @Override
- public Dimension getDimension() {
- return dimension;
- }
-
- @Override
- public int hashCode() {
- return digest.hashCode();
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof DimensionType that) {
- return Objects.equals(this.getDimension(), that.getDimension());
- }
- return false;
- }
-
- @Override
- public String toString() {
- return digest;
- }
-
- @Override
- public Type computeCommonType(Type type, int[] conversionCount) {
- if (conversionCount != null && type instanceof HierarchyType hierarchyType) {
- if (Objects.equals(hierarchyType.getDimension(), dimension)) {
- ++conversionCount[0];
- return this;
- }
- return null;
- }
- if (!(type instanceof DimensionType that)) {
- return null;
- }
- if (this.getDimension() != null
- && this.getDimension().equals(that.getDimension()))
- {
- return new DimensionType(
- this.getDimension());
- }
- return DimensionType.Unknown;
- }
-
- @Override
- public boolean isInstance(Object value) {
- return value instanceof Dimension
- && (dimension == null
- || value.equals(dimension));
- }
-
- @Override
- public int getArity() {
- return 1;
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/EmptyType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/EmptyType.java
deleted file mode 100644
index 2ff32fd56b..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/EmptyType.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (c) 2002-2017 Hitachi Vantara.. All rights reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.type;
-
-public class EmptyType extends ScalarType {
-
- public static final EmptyType INSTANCE = new EmptyType();
-
- private EmptyType() {
- super("");
- }
-
- @Override
- public boolean equals(Object obj) {
- return obj instanceof EmptyType;
- }
-
- @Override
- public int hashCode() {
- return super.hashCode();
- }
-
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/HierarchyType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/HierarchyType.java
deleted file mode 100644
index 6728a74d9b..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/HierarchyType.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.type;
-
-import java.util.Objects;
-
-import org.eclipse.daanse.olap.api.element.Dimension;
-import org.eclipse.daanse.olap.api.element.Hierarchy;
-import org.eclipse.daanse.olap.api.element.Level;
-
-/**
- * The type of an expression which represents a hierarchy.
- *
- * @author jhyde
- * @since Feb 17, 2005
- */
-public class HierarchyType implements Type {
- private final Dimension dimension;
- private final Hierarchy hierarchy;
- private final String digest;
-
- public static final HierarchyType Unknown = new HierarchyType(null, null);
-
- /**
- * Creates a type representing a hierarchy.
- *
- * @param dimension Dimension that values of this type must belong to, or
- * null if the dimension is unknown
- * @param hierarchy Hierarchy that values of this type must belong to,
- * null if the hierarchy is unknown
- */
- public HierarchyType(Dimension dimension, Hierarchy hierarchy) {
- this.dimension = dimension;
- this.hierarchy = hierarchy;
- StringBuilder buf = new StringBuilder("HierarchyType<");
- if (hierarchy != null) {
- buf.append("hierarchy=").append(hierarchy.getUniqueName());
- } else if (dimension != null) {
- buf.append("dimension=").append(dimension.getUniqueName());
- }
- buf.append(">");
- this.digest = buf.toString();
- }
-
- public static HierarchyType forHierarchy(Hierarchy hierarchy) {
- return new HierarchyType(hierarchy.getDimension(), hierarchy);
- }
-
- public static HierarchyType forType(Type type) {
- return new HierarchyType(type.getDimension(), type.getHierarchy());
- }
-
- @Override
- public boolean usesDimension(Dimension dimension, boolean definitely) {
- return this.dimension == dimension
- || (!definitely && this.dimension == null);
- }
-
- @Override
- public boolean usesHierarchy(Hierarchy hierarchy, boolean definitely) {
- return this.hierarchy == hierarchy
- || (!definitely
- && this.hierarchy == null
- && (this.dimension == null
- || this.dimension == hierarchy.getDimension()));
- }
-
- @Override
- public Dimension getDimension() {
- return dimension;
- }
-
- @Override
- public Hierarchy getHierarchy() {
- return hierarchy;
- }
-
- @Override
- public Level getLevel() {
- return null;
- }
-
- @Override
- public String toString() {
- return digest;
- }
-
- @Override
- public int hashCode() {
- return digest.hashCode();
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof HierarchyType that) {
- return Objects.equals(this.hierarchy, that.hierarchy)
- && Objects.equals(this.dimension, that.dimension);
- }
- return false;
- }
-
- @Override
- public Type computeCommonType(Type type, int[] conversionCount) {
- if (!(type instanceof HierarchyType that)) {
- return null;
- }
- if (this.getHierarchy() != null
- && this.getHierarchy().equals(that.getHierarchy()))
- {
- return this;
- }
- if (this.getDimension() != null
- && this.getDimension().equals(that.getDimension()))
- {
- return new HierarchyType(
- this.getDimension(),
- null);
- }
- return HierarchyType.Unknown;
- }
-
- @Override
- public boolean isInstance(Object value) {
- return value instanceof Hierarchy hValue
- && (hierarchy == null
- || value.equals(hierarchy))
- && (dimension == null
- || hValue.getDimension().equals(dimension));
- }
-
- @Override
- public int getArity() {
- return 1;
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/LevelType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/LevelType.java
deleted file mode 100644
index 8b3b284405..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/LevelType.java
+++ /dev/null
@@ -1,191 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-package org.eclipse.daanse.olap.api.type;
-
-import java.util.Objects;
-
-import org.eclipse.daanse.olap.api.element.Dimension;
-import org.eclipse.daanse.olap.api.element.Hierarchy;
-import org.eclipse.daanse.olap.api.element.Level;
-
-/**
- * The type of an expression which represents a level.
- *
- * @author jhyde
- * @since Feb 17, 2005
- */
-public class LevelType implements Type {
- private final Dimension dimension;
- private final Hierarchy hierarchy;
- private final Level level;
- private final String digest;
-
- public static final LevelType Unknown = new LevelType(null, null, null);
-
- /**
- * Creates a type representing a level.
- *
- * @param dimension Dimension which values of this type must belong to, or
- * null if not known
- * @param hierarchy Hierarchy which values of this type must belong to, or
- * null if not known
- * @param level Level which values of this type must belong to, or null if
- */
- public LevelType(Dimension dimension, Hierarchy hierarchy, Level level) {
- this.dimension = dimension;
- this.hierarchy = hierarchy;
- this.level = level;
- if (level != null) {
- assert hierarchy != null;
- assert
- level.getHierarchy() == hierarchy;
- }
- if (hierarchy != null) {
- assert dimension != null;
- assert hierarchy.getDimension() == dimension;
- }
- StringBuilder buf = new StringBuilder("LevelType<");
- if (level != null) {
- buf.append("level=").append(level.getUniqueName());
- } else if (hierarchy != null) {
- buf.append("hierarchy=").append(hierarchy.getUniqueName());
- } else if (dimension != null) {
- buf.append("dimension=").append(dimension.getUniqueName());
- }
- buf.append(">");
- this.digest = buf.toString();
- }
-
- public static LevelType forType(Type type) {
- return new LevelType(
- type.getDimension(),
- type.getHierarchy(),
- type.getLevel());
- }
-
- public static LevelType forLevel(Level level) {
- return new LevelType(
- level.getDimension(),
- level.getHierarchy(),
- level);
- }
-
- @Override
- public boolean usesDimension(Dimension dimension, boolean definitely) {
- return this.dimension == dimension
- || (!definitely && this.dimension == null);
- }
-
- @Override
- public boolean usesHierarchy(Hierarchy hierarchy, boolean definitely) {
- return this.hierarchy == hierarchy
- || (!definitely
- && this.hierarchy == null
- && (this.dimension == null
- || this.dimension == hierarchy.getDimension()));
- }
-
- @Override
- public Dimension getDimension() {
- return dimension;
- }
-
- @Override
- public Hierarchy getHierarchy() {
- return hierarchy;
- }
-
- @Override
- public Level getLevel() {
- return level;
- }
-
- @Override
- public String toString() {
- return digest;
- }
-
- @Override
- public int hashCode() {
- return digest.hashCode();
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof LevelType that) {
- return Objects.equals(this.level, that.level)
- && Objects.equals(this.hierarchy, that.hierarchy)
- && Objects.equals(this.dimension, that.dimension);
- }
- return false;
- }
-
- @Override
- public Type computeCommonType(Type type, int[] conversionCount) {
- if (!(type instanceof LevelType that)) {
- return null;
- }
- if (this.getLevel() != null
- && this.getLevel().equals(that.getLevel()))
- {
- return this;
- }
- if (this.getHierarchy() != null
- && this.getHierarchy().equals(that.getHierarchy()))
- {
- return new LevelType(
- this.getDimension(),
- this.getHierarchy(),
- null);
- }
- if (this.getDimension() != null
- && this.getDimension().equals(that.getDimension()))
- {
- return new LevelType(
- this.getDimension(),
- null,
- null);
- }
- return LevelType.Unknown;
- }
-
- @Override
- public boolean isInstance(Object value) {
- return value instanceof Level
- && (level == null
- || value.equals(level))
- && (hierarchy == null
- || ((Level) value).getHierarchy().equals(hierarchy))
- && (dimension == null
- || ((Level) value).getDimension().equals(dimension));
- }
-
- @Override
- public int getArity() {
- return 1;
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/MemberType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/MemberType.java
deleted file mode 100644
index 656c1b47d3..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/MemberType.java
+++ /dev/null
@@ -1,257 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-
-package org.eclipse.daanse.olap.api.type;
-
-import org.eclipse.daanse.olap.api.element.Dimension;
-import org.eclipse.daanse.olap.api.element.Hierarchy;
-import org.eclipse.daanse.olap.api.element.Level;
-import org.eclipse.daanse.olap.api.element.Member;
-
-
-/**
- * The type of an expression which represents a member.
- *
- * @author jhyde
- * @since Feb 17, 2005
- */
-public class MemberType implements Type {
- private final Hierarchy hierarchy;
- private final Dimension dimension;
- private final Level level;
- private final Member member;
- private final String digest;
-
- public static final MemberType Unknown =
- new MemberType(null, null, null, null);
-
- /**
- * Creates a type representing a member.
- *
- * @param dimension Dimension the member belongs to, or null if not known
- * @param hierarchy Hierarchy the member belongs to, or null if not known
- * @param level Level the member belongs to, or null if not known
- * @param member The precise member, or null if not known
- */
- public MemberType(
- Dimension dimension,
- Hierarchy hierarchy,
- Level level,
- Member member)
- {
- this.dimension = dimension;
- this.hierarchy = hierarchy;
- this.level = level;
- this.member = member;
- if (member != null) {
- assert level != null;
- assert member.getLevel() == level;
- }
- if (level != null) {
- assert hierarchy != null;
- assert level.getHierarchy() == hierarchy;
- }
- if (hierarchy != null) {
- assert dimension != null;
- assert hierarchy.getDimension() == dimension;
- }
- StringBuilder buf = new StringBuilder("MemberType<");
- if (member != null) {
- buf.append("member=").append(member.getUniqueName());
- } else if (level != null) {
- buf.append("level=").append(level.getUniqueName());
- } else if (hierarchy != null) {
- buf.append("hierarchy=").append(hierarchy.getUniqueName());
- } else if (dimension != null) {
- buf.append("dimension=").append(dimension.getUniqueName());
- }
- buf.append(">");
- this.digest = buf.toString();
- }
-
- public static MemberType forDimension(Dimension dimension) {
- return new MemberType(dimension, null, null, null);
- }
-
- public static MemberType forHierarchy(Hierarchy hierarchy) {
- final Dimension dimension;
- if (hierarchy == null) {
- dimension = null;
- } else {
- dimension = hierarchy.getDimension();
- }
- return new MemberType(dimension, hierarchy, null, null);
- }
-
- public static MemberType forLevel(Level level) {
- final Dimension dimension;
- final Hierarchy hierarchy;
- if (level == null) {
- dimension = null;
- hierarchy = null;
- } else {
- dimension = level.getDimension();
- hierarchy = level.getHierarchy();
- }
- return new MemberType(dimension, hierarchy, level, null);
- }
-
- public static MemberType forMember(Member member) {
- final Dimension dimension;
- final Hierarchy hierarchy;
- final Level level;
- if (member == null) {
- dimension = null;
- hierarchy = null;
- level = null;
- } else {
- dimension = member.getDimension();
- hierarchy = member.getHierarchy();
- level = member.getLevel();
- }
- return new MemberType(dimension, hierarchy, level, member);
- }
-
- @Override
- public String toString() {
- return digest;
- }
-
- @Override
- public Hierarchy getHierarchy() {
- return hierarchy;
- }
-
- @Override
- public Level getLevel() {
- return level;
- }
-
- public Member getMember() {
- return member;
- }
-
- @Override
- public boolean usesDimension(Dimension dimension, boolean definitely) {
- return this.dimension == dimension
- || (!definitely && this.dimension == null);
- }
-
- @Override
- public boolean usesHierarchy(Hierarchy hierarchy, boolean definitely) {
- return this.hierarchy == hierarchy
- || (!definitely
- && this.hierarchy == null
- && (this.dimension == null
- || this.dimension == hierarchy.getDimension()));
- }
-
- public Type getValueType() {
- // todo: when members have more type information (double vs. integer
- // vs. string), return better type if member != null.
- return ScalarType.INSTANCE;
- }
-
- @Override
- public Dimension getDimension() {
- return dimension;
- }
-
- public static MemberType forType(Type type) {
- if (type instanceof MemberType) {
- return (MemberType) type;
- } else {
- return new MemberType(
- type.getDimension(),
- type.getHierarchy(),
- type.getLevel(),
- null);
- }
- }
-
- @Override
- public Type computeCommonType(Type type, int[] conversionCount) {
- if (type instanceof ScalarType) {
- return getValueType().computeCommonType(type, conversionCount);
- }
- if (type instanceof TupleType) {
- return type.computeCommonType(this, conversionCount);
- }
- if (!(type instanceof MemberType that)) {
- return null;
- }
- if (this.getMember() != null
- && this.getMember().equals(that.getMember()))
- {
- return this;
- }
- if (this.getLevel() != null
- && this.getLevel().equals(that.getLevel()))
- {
- return new MemberType(
- this.getDimension(),
- this.getHierarchy(),
- this.getLevel(),
- null);
- }
- if (this.getHierarchy() != null
- && this.getHierarchy().equals(that.getHierarchy()))
- {
- return new MemberType(
- this.getDimension(),
- this.getHierarchy(),
- null,
- null);
- }
- if (this.getDimension() != null
- && this.getDimension().equals(that.getDimension()))
- {
- return new MemberType(
- this.getDimension(),
- null,
- null,
- null);
- }
- return MemberType.Unknown;
- }
-
- @Override
- public boolean isInstance(Object value) {
- return value instanceof Member
- && (level == null
- || ((Member) value).getLevel().equals(level))
- && (hierarchy == null
- || ((Member) value).getHierarchy().equals(hierarchy))
- && (dimension == null
- || ((Member) value).getDimension().equals(dimension));
- }
-
- @Override
- public int getArity() {
- return 1;
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/NullType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/NullType.java
deleted file mode 100644
index d8e25afc29..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/NullType.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-
-package org.eclipse.daanse.olap.api.type;
-
-
-public class NullType extends ScalarType
-{
-
- public static final NullType INSTANCE = new NullType();
-
- private NullType() {
- super("");
- }
-
- @Override
- public boolean equals(Object obj) {
- return obj instanceof NullType;
- }
-
- @Override
- public int hashCode() {
- return super.hashCode();
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/NumericType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/NumericType.java
deleted file mode 100644
index 4865e30ec2..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/NumericType.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-
-package org.eclipse.daanse.olap.api.type;
-
-public class NumericType extends ScalarType {
-
- public static final NumericType INSTANCE = new NumericType();
-
- private NumericType() {
- this("NUMERIC");
- }
-
- protected NumericType(String digest) {
- super(digest);
- }
-
- @Override
- public boolean equals(Object obj) {
- return obj instanceof NumericType && toString().equals(obj.toString());
- }
-
- @Override
- public boolean isInstance(Object value) {
- return value instanceof Number || value instanceof Character;
- }
-
- @Override
- public int hashCode() {
- return super.hashCode();
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/ScalarType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/ScalarType.java
deleted file mode 100644
index 457913c6e5..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/ScalarType.java
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-
-package org.eclipse.daanse.olap.api.type;
-
-import org.eclipse.daanse.olap.api.element.Dimension;
-import org.eclipse.daanse.olap.api.element.Hierarchy;
-import org.eclipse.daanse.olap.api.element.Level;
-
-/**
- * Base class for types which represent scalar values.
- *
- * An instance of this class means a scalar value of unknown type.
- * Usually one of the derived classes {@link NumericType},
- * {@link StringType}, {@link BooleanType} is used instead.
- *
- * @author jhyde
- * @since Feb 17, 2005
- */
-public class ScalarType implements Type {
- private final String digest;
-
- public static final ScalarType INSTANCE = new ScalarType();
-
- private ScalarType() {
- this("SCALAR");
- }
-
- protected ScalarType(String digest) {
- this.digest = digest;
- }
-
- @Override
- public int hashCode() {
- return digest.hashCode();
- }
-
- @Override
- public boolean equals(Object obj) {
- return obj != null
- && obj.getClass() == ScalarType.class;
- }
-
- @Override
- public String toString() {
- return digest;
- }
-
- @Override
- public boolean usesDimension(Dimension dimension, boolean definitely) {
- return false;
- }
-
- @Override
- public boolean usesHierarchy(Hierarchy hierarchy, boolean definitely) {
- return false;
- }
-
- @Override
- public Hierarchy getHierarchy() {
- return null;
- }
-
- @Override
- public Level getLevel() {
- return null;
- }
-
- @Override
- public Type computeCommonType(Type type, int[] conversionCount) {
- if (this.equals(type)) {
- return this;
- } else if (type instanceof NullType) {
- return this;
- } else if (this instanceof NullType
- && type instanceof ScalarType)
- {
- return type;
- } else if (this.getClass() == ScalarType.class
- && type instanceof ScalarType)
- {
- return this;
- } else if (type.getClass() == ScalarType.class) {
- return type;
- } else if (type instanceof ScalarType) {
- return new ScalarType();
- } else if (type instanceof MemberType) {
- return computeCommonType(
- ((MemberType) type).getValueType(),
- conversionCount);
- } else if (type instanceof TupleType) {
- return computeCommonType(
- ((TupleType) type).getValueType(),
- conversionCount);
- } else {
- return null;
- }
- }
-
- @Override
- public Dimension getDimension() {
- return null;
- }
-
- @Override
- public boolean isInstance(Object value) {
- // Somewhat pessimistic.
- return false;
- }
-
- @Override
- public int getArity() {
- return 1;
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/SetType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/SetType.java
deleted file mode 100644
index 1e9d12eef6..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/SetType.java
+++ /dev/null
@@ -1,172 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * Copyright (C) 2022 Sergei Semenkov
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-
-package org.eclipse.daanse.olap.api.type;
-
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Objects;
-
-import org.eclipse.daanse.olap.api.element.Dimension;
-import org.eclipse.daanse.olap.api.element.Hierarchy;
-import org.eclipse.daanse.olap.api.element.Level;
-
-/**
- * Set type.
- *
- * @author jhyde
- * @since Feb 17, 2005
- */
-public class SetType implements Type {
-
- private final Type elementType;
- private final String digest;
-
- /**
- * Creates a type representing a set of elements of a given type.
- *
- * @param elementType The type of the elements in the set, or null if not
- * known
- */
- public SetType(Type elementType) {
- if (elementType != null) {
- assert elementType instanceof MemberType
- || elementType instanceof TupleType;
- }
- this.elementType = elementType;
- this.digest = "SetType<" + elementType + ">";
- }
-
- @Override
- public int hashCode() {
- return digest.hashCode();
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof SetType that) {
- return Objects.equals(this.elementType, that.elementType);
- } else {
- return false;
- }
- }
-
- @Override
- public String toString() {
- return digest;
- }
-
- /**
- * Returns the type of the elements of this set.
- *
- * @return the type of the elements in this set
- */
- public Type getElementType() {
- return elementType;
- }
-
- @Override
- public boolean usesDimension(Dimension dimension, boolean definitely) {
- if (elementType == null) {
- return definitely;
- }
- return elementType.usesDimension(dimension, definitely);
- }
-
- @Override
- public boolean usesHierarchy(Hierarchy hierarchy, boolean definitely) {
- if (elementType == null) {
- return definitely;
- }
- return elementType.usesHierarchy(hierarchy, definitely);
- }
-
- public List getHierarchies() {
- if(elementType instanceof TupleType tupleType) {
- return tupleType.getHierarchies();
- }
- else { //MemberType
- ArrayList result = new ArrayList<>();
- result.add(this.getHierarchy());
- return result;
- }
- }
-
- @Override
- public Dimension getDimension() {
- return elementType == null
- ? null
- : elementType.getDimension();
- }
-
- @Override
- public Hierarchy getHierarchy() {
- return elementType == null
- ? null
- : elementType.getHierarchy();
- }
-
- @Override
- public Level getLevel() {
- return elementType == null
- ? null
- : elementType.getLevel();
- }
-
- @Override
- public int getArity() {
- return elementType.getArity();
- }
-
- @Override
- public Type computeCommonType(Type type, int[] conversionCount) {
- if (!(type instanceof SetType that)) {
- return null;
- }
- final Type mostGeneralElementType =
- this.getElementType().computeCommonType(
- that.getElementType(), conversionCount);
- if (mostGeneralElementType == null) {
- return null;
- }
- return new SetType(mostGeneralElementType);
- }
-
- @Override
- public boolean isInstance(Object value) {
- if (!(value instanceof List list)) {
- return false;
- }
- for (Object o : list) {
- if (!elementType.isInstance(o)) {
- return false;
- }
- }
- return true;
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/StringType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/StringType.java
deleted file mode 100644
index de794d9b38..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/StringType.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-
-package org.eclipse.daanse.olap.api.type;
-
-public class StringType extends ScalarType {
-
- public static final StringType INSTANCE = new StringType();
- private StringType() {
- super("STRING");
- }
-
- @Override
- public boolean equals(Object obj) {
- return obj instanceof StringType;
- }
-
- @Override
- public boolean isInstance(Object value) {
- return value instanceof String;
- }
-
- @Override
- public int hashCode() {
- return super.hashCode();
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/SymbolType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/SymbolType.java
deleted file mode 100644
index b63c5696f7..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/SymbolType.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-
-package org.eclipse.daanse.olap.api.type;
-
-public class SymbolType extends ScalarType {
- public static final SymbolType INSTANCE = new SymbolType();
-
- private SymbolType() {
- super("SYMBOL");
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/TupleType.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/TupleType.java
deleted file mode 100644
index 112a39547b..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/TupleType.java
+++ /dev/null
@@ -1,239 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- */
-
-
-package org.eclipse.daanse.olap.api.type;
-
-import java.text.MessageFormat;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-
-import org.eclipse.daanse.olap.api.element.Dimension;
-import org.eclipse.daanse.olap.api.element.Hierarchy;
-import org.eclipse.daanse.olap.api.element.Level;
-import org.eclipse.daanse.olap.api.exception.OlapRuntimeException;
-
-
-
-/**
- * Tuple type.
- *
- * @author jhyde
- * @since Feb 17, 2005
- */
-public class TupleType implements Type {
-
- private final static String dupHierarchiesInTuple = "Tuple contains more than one member of hierarchy ''{0}''.";
- public final Type[] elementTypes;
- private final String digest;
-
- /**
- * Creates a type representing a tuple whose fields are the given types.
- *
- * @param elementTypes Array of types of the members in this tuple
- */
- public TupleType(Type[] elementTypes) {
- assert elementTypes != null;
- this.elementTypes = elementTypes.clone();
-
- final StringBuilder buf = new StringBuilder();
- buf.append("TupleType<");
- int k = 0;
- for (Type elementType : elementTypes) {
- if (k++ > 0) {
- buf.append(", ");
- }
- buf.append(elementType);
- }
- buf.append(">");
- digest = buf.toString();
- }
-
- @Override
- public String toString() {
- return digest;
- }
-
- @Override
- public boolean equals(Object obj) {
- if (obj instanceof TupleType that) {
- return Arrays.equals(this.elementTypes, that.elementTypes);
- } else {
- return false;
- }
- }
-
- @Override
- public int hashCode() {
- return digest.hashCode();
- }
-
- @Override
- public boolean usesDimension(Dimension dimension, boolean definitely) {
- for (Type elementType : elementTypes) {
- if (elementType.usesDimension(dimension, definitely)) {
- return true;
- }
- }
- return false;
- }
-
- @Override
- public boolean usesHierarchy(Hierarchy hierarchy, boolean definitely) {
- for (Type elementType : elementTypes) {
- if (elementType.usesHierarchy(hierarchy, definitely)) {
- return true;
- }
- }
- return false;
- }
-
- public List getHierarchies() {
- final List hierarchies =
- new ArrayList<>(elementTypes.length);
- for (Type elementType : elementTypes) {
- hierarchies.add(elementType.getHierarchy());
- }
- return hierarchies;
- }
-
- @Override
- public int getArity() {
- return elementTypes.length;
- }
-
- @Override
- public Dimension getDimension() {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Hierarchy getHierarchy() {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public Level getLevel() {
- throw new UnsupportedOperationException();
- }
-
- public Type getValueType() {
- for (Type elementType : elementTypes) {
- if (elementType instanceof MemberType memberType) {
- Dimension dimension = memberType.getDimension();
- if (dimension != null && dimension.isMeasures()) {
- return memberType.getValueType();
- }
- }
- }
- return ScalarType.INSTANCE;
- }
-
- @Override
- public Type computeCommonType(Type type, int[] conversionCount) {
- if (type instanceof ScalarType) {
- return getValueType().computeCommonType(type, conversionCount);
- }
- if (type instanceof MemberType) {
- return commonTupleType(
- new TupleType(new Type[]{type}),
- conversionCount);
- }
- if (!(type instanceof TupleType)) {
- return null;
- }
- return commonTupleType(type, conversionCount);
- }
-
- @Override
- public boolean isInstance(Object value) {
- if (!(value instanceof Object[] objects)) {
- return false;
- }
- if (objects.length != elementTypes.length) {
- return false;
- }
- for (int i = 0; i < objects.length; i++) {
- if (!elementTypes[i].isInstance(objects[i])) {
- return false;
- }
- }
- return true;
- }
-
- private Type commonTupleType(Type type, int[] conversionCount) {
- TupleType that = (TupleType) type;
-
- if (this.elementTypes.length < that.elementTypes.length) {
- return createCommonTupleType(that, conversionCount);
- }
- return that.createCommonTupleType(this, conversionCount);
- }
-
- private Type createCommonTupleType(TupleType that, int[] conversionCount) {
- final List elementTypes = new ArrayList<>();
- for (int i = 0; i < this.elementTypes.length; i++) {
- Type commonType = this.elementTypes[i].computeCommonType(
- that.elementTypes[i], conversionCount);
- elementTypes.add(commonType);
- if (commonType == null) {
- return null;
- }
- }
- if (elementTypes.size() < that.elementTypes.length) {
- for (int i = elementTypes.size();
- i < that.elementTypes.length; i++)
- {
- elementTypes.add(ScalarType.INSTANCE);
- }
- }
- return new TupleType(
- elementTypes.toArray(new Type[elementTypes.size()]));
- }
-
- /**
- * Checks that there are no duplicate dimensions in a list of member types.
- * If so, the member types will form a valid tuple type.
- * If not, throws {@link org.eclipse.daanse.olap.api.exception.OlapRuntimeException}.
- *
- * @param memberTypes Array of member types
- */
- public static void checkHierarchies(MemberType[] memberTypes) {
- for (int i = 0; i < memberTypes.length; i++) {
- MemberType memberType = memberTypes[i];
- for (int j = 0; j < i; j++) {
- MemberType member1 = memberTypes[j];
- final Hierarchy hierarchy = memberType.getHierarchy();
- final Hierarchy hierarchy1 = member1.getHierarchy();
- if (hierarchy != null && hierarchy == hierarchy1) {
- throw new OlapRuntimeException(MessageFormat.format(dupHierarchiesInTuple,
- hierarchy.getUniqueName()));
- }
- }
- }
- }
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/Type.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/Type.java
deleted file mode 100644
index a48e8bd60e..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/Type.java
+++ /dev/null
@@ -1,186 +0,0 @@
-/*
- * This software is subject to the terms of the Eclipse Public License v1.0
- * Agreement, available at the following URL:
- * http://www.eclipse.org/legal/epl-v10.html.
- * You must accept the terms of that agreement to use this software.
- *
- * Copyright (C) 2005-2005 Julian Hyde
- * Copyright (C) 2005-2017 Hitachi Vantara
- * All Rights Reserved.
- *
- * For more information please visit the Project: Hitachi Vantara - Mondrian
- *
- * ---- All changes after Fork in 2023 ------------------------
- *
- * Project: Eclipse daanse
- *
- * Copyright (c) 2023 Contributors to the Eclipse Foundation.
- *
- * This program and the accompanying materials are made
- * available under the terms of the Eclipse Public License 2.0
- * which is available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors after Fork in 2023:
- * SmartCity Jena - initial
- * Stefan Bischof (bipolis.org) - initial
- */
-
-
-package org.eclipse.daanse.olap.api.type;
-
-import org.eclipse.daanse.olap.api.element.Dimension;
-import org.eclipse.daanse.olap.api.element.Hierarchy;
-import org.eclipse.daanse.olap.api.element.Level;
-
-/**
- * Type of an MDX expression.
- *
- * @author jhyde
- * @since Feb 17, 2005
- */
-public interface Type {
- /**
- * Returns whether this type contains a given dimension.
- *
- * For example:
- *
- * DimensionType([Gender]) uses only the
- * [Gender] dimension.
- * TupleType(MemberType([Gender]), MemberType([Store]))
- * uses [Gender] and [Store]
- * dimensions.
- *
- *
- * The definitely parameter comes into play when the
- * dimensional information is incomplete. For example, when applied to
- * TupleType(MemberType(null), MemberType([Store])),
- * usesDimension([Gender], false) returns true because it
- * is possible that the expression returns a member of the
- * [Gender] dimension; but
- * usesDimension([Gender], true) returns true because it
- * is possible that the expression returns a member of the
- * [Gender] dimension.
- *
- * @param dimension Dimension
- * @param definitely If true, returns true only if this type definitely
- * uses the dimension
- *
- * @return whether this Type uses the given Dimension
- */
- boolean usesDimension(Dimension dimension, boolean definitely);
-
- /**
- * Returns whether this type contains a given hierarchy.
- *
- * For example:
- *
- * HierarchyType([Customer].[Gender]) uses only the
- * [Customer].[Gender] hierarchy.
- * TupleType(MemberType([Customer].[Gender]),
- * MemberType([Store].[Store]))
- * uses [Gender] and [Store]
- * dimensions.
- *
- *
- * The definitely parameter comes into play when the
- * dimensional information is incomplete. For example, when applied to
- * TupleType(MemberType([Customer]), MemberType([Store])),
- * usesDimension([Customer].[Gender], false) returns true
- * because the expression returns a member of one hierarchy of the
- * [Customer] dimension and that might be a member of the
- * [Customer].[Gender] hierarchy; but
- * usesDimension([Customer].[Gender], true) returns false
- * because might return a member of a different hierarchy, such as
- * [Customer].[State].
- *
- * @param hierarchy Hierarchy
- * @param definitely If true, returns true only if this type definitely
- * uses the hierarchy
- *
- * @return whether this Type uses the given Hierarchy
- */
- boolean usesHierarchy(Hierarchy hierarchy, boolean definitely);
-
- /**
- * Returns the Dimension of this Type, or null if not known.
- * If not applicable, throws.
- *
- * @return the Dimension of this Type, or null if not known.
- */
- Dimension getDimension();
-
- /**
- * Returns the Hierarchy of this Type, or null if not known.
- * If not applicable, throws.
- *
- * @return the Hierarchy of this type, or null if not known
- */
- Hierarchy getHierarchy();
-
- /**
- * Returns the Level of this Type, or null if not known.
- * If not applicable, throws.
- *
- * @return the Level of this Type
- */
- Level getLevel();
-
- /**
- * Returns a Type which is more general than this and the given Type.
- * The type returned is broad enough to hold any value of either type,
- * but no broader. If there is no such type, returns null.
- *
- * Some examples:
- * The common type for StringType and NumericType is ScalarType.
- * The common type for NumericType and DecimalType(4, 2) is
- * NumericType.
- * DimensionType and NumericType have no common type.
- *
- *
- * If conversionCount is not null, implicit conversions
- * such as HierarchyType to DimensionType are considered; the parameter
- * is incremented by the number of conversions performed.
- *
- *
Some examples:
- * The common type for HierarchyType(hierarchy=Time.Weekly)
- * and LevelType(dimension=Time), if conversions are allowed, is
- * HierarchyType(dimension=Time).
- *
- *
- * One use of common types is to determine the types of the arguments
- * to the Iif function. For example, the call
- *
- *
Iif(1 > 2, [Measures].[Unit Sales],
- * 5)
- *
- * has type ScalarType, because DecimalType(-1, 0) is a subtype of
- * ScalarType, and MeasureType can be converted implicitly to ScalarType.
- *
- * @param type Type
- *
- * @param conversionCount Number of conversions; output parameter that is
- * incremented each time a conversion is performed; if null, conversions
- * are not considered
- *
- * @return More general type
- */
- Type computeCommonType(Type type, int[] conversionCount);
-
- /**
- * Returns whether a value is valid for a type.
- *
- * @param value Value
- * @return Whether value is valid for this type
- */
- boolean isInstance(Object value);
-
- /**
- * Returns the number of fields in a tuple type, or a set of tuples.
- * For most other types, in particular member type, returns 1.
- *
- * @return Arity of type
- */
- int getArity();
-}
diff --git a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/package-info.java b/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/package-info.java
deleted file mode 100644
index bb4db1b6a7..0000000000
--- a/olap/api/src/main/java/org/eclipse/daanse/olap/api/type/package-info.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
-* Copyright (c) 2022 Contributors to the Eclipse Foundation.
-*
-* This program and the accompanying materials are made
-* available under the terms of the Eclipse Public License 2.0
-* which is available at https://www.eclipse.org/legal/epl-2.0/
-*
-* SPDX-License-Identifier: EPL-2.0
-*
-* Contributors:
-* SmartCity Jena - initial
-*/
-
-@org.osgi.annotation.bundle.Export
-@org.osgi.annotation.versioning.Version("0.0.1")
-package org.eclipse.daanse.olap.api.type;
\ No newline at end of file
diff --git a/olap/pom.xml b/olap/pom.xml
index 9b499539d1..bd3bdcbdc2 100644
--- a/olap/pom.xml
+++ b/olap/pom.xml
@@ -20,9 +20,7 @@
org.eclipse.daanse.olap
pom
- api
xmla
documentation
- action