From 292f86e0ef07ca48c6af659272a3436908556036 Mon Sep 17 00:00:00 2001 From: datomo Date: Mon, 25 Sep 2023 00:47:40 +0200 Subject: [PATCH] adjustment to mongo --- .../db/schema/types/ModifiableTable.java | 40 +++++++++++++++++++ .../db/adapter/mongodb/MongoStoreCatalog.java | 27 ------------- 2 files changed, 40 insertions(+), 27 deletions(-) create mode 100644 core/src/main/java/org/polypheny/db/schema/types/ModifiableTable.java delete mode 100644 plugins/mongodb-adapter/src/main/java/org/polypheny/db/adapter/mongodb/MongoStoreCatalog.java diff --git a/core/src/main/java/org/polypheny/db/schema/types/ModifiableTable.java b/core/src/main/java/org/polypheny/db/schema/types/ModifiableTable.java new file mode 100644 index 0000000000..cf19252635 --- /dev/null +++ b/core/src/main/java/org/polypheny/db/schema/types/ModifiableTable.java @@ -0,0 +1,40 @@ +/* + * Copyright 2019-2023 The Polypheny Project + * + * Licensed 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. + */ + +package org.polypheny.db.schema.types; + +import java.util.List; +import org.polypheny.db.algebra.AlgNode; +import org.polypheny.db.algebra.core.common.Modify; +import org.polypheny.db.algebra.core.common.Modify.Operation; +import org.polypheny.db.catalog.entity.CatalogEntity; +import org.polypheny.db.plan.AlgOptCluster; +import org.polypheny.db.plan.AlgTraitSet; +import org.polypheny.db.rex.RexNode; + +public interface ModifiableTable extends Typed { + + Modify toModificationAlg( + AlgOptCluster cluster, + AlgTraitSet traits, + CatalogEntity physicalEntity, + AlgNode child, + Operation operation, + List targets, + List sources ); + + +} diff --git a/plugins/mongodb-adapter/src/main/java/org/polypheny/db/adapter/mongodb/MongoStoreCatalog.java b/plugins/mongodb-adapter/src/main/java/org/polypheny/db/adapter/mongodb/MongoStoreCatalog.java deleted file mode 100644 index f3566c91f7..0000000000 --- a/plugins/mongodb-adapter/src/main/java/org/polypheny/db/adapter/mongodb/MongoStoreCatalog.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2019-2023 The Polypheny Project - * - * Licensed 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. - */ - -package org.polypheny.db.adapter.mongodb; - -import org.polypheny.db.catalog.catalogs.RelStoreCatalog; - -public class MongoStoreCatalog extends RelStoreCatalog { - - public MongoStoreCatalog( long adapterId ) { - super( adapterId ); - } - -}