Skip to content

Commit

Permalink
[HWORKS-1056] Missing interface implementation in community build
Browse files Browse the repository at this point in the history
  • Loading branch information
SirOibaf committed Mar 6, 2024
1 parent 8ca901d commit 0f5a33c
Showing 1 changed file with 138 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
/*
* This file is part of Hopsworks
* Copyright (C) 2024, Hopsworks AB. All rights reserved
*
* Hopsworks is free software: you can redistribute it and/or modify it under the terms of
* the GNU Affero General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*
* Hopsworks is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License along with this program.
* If not, see <https://www.gnu.org/licenses/>.
*/

package io.hops.hopsworks.common.featurestore.metadata;

import io.hops.hopsworks.common.integrations.CommunityStereotype;
import io.hops.hopsworks.exceptions.FeatureStoreMetadataException;
import io.hops.hopsworks.exceptions.FeaturestoreException;
import io.hops.hopsworks.persistence.entity.featurestore.featuregroup.Featuregroup;
import io.hops.hopsworks.persistence.entity.featurestore.featureview.FeatureView;
import io.hops.hopsworks.persistence.entity.featurestore.metadata.FeatureStoreTag;
import io.hops.hopsworks.persistence.entity.featurestore.trainingdataset.TrainingDataset;

import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import java.util.Map;
import java.util.Optional;

@Stateless
@CommunityStereotype
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
public class FeatureStoreTagController implements FeatureStoreTagControllerIface {
@Override
public Optional<FeatureStoreTag> getTag(Featuregroup featureGroup, String name)
throws FeatureStoreMetadataException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public Optional<FeatureStoreTag> getTag(FeatureView featureView, String name)
throws FeatureStoreMetadataException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public Optional<FeatureStoreTag> getTag(TrainingDataset trainingDataset, String name)
throws FeatureStoreMetadataException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public Map<String, FeatureStoreTag> getTags(Featuregroup featureGroup) {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public Map<String, FeatureStoreTag> getTags(FeatureView featureView) {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public Map<String, FeatureStoreTag> getTags(TrainingDataset trainingDataset) {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public AttachMetadataResult<FeatureStoreTag> upsertTag(Featuregroup featureGroup, String name, String value)
throws FeatureStoreMetadataException, FeaturestoreException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public AttachMetadataResult<FeatureStoreTag> upsertTag(FeatureView featureView, String name, String value)
throws FeatureStoreMetadataException, FeaturestoreException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public AttachMetadataResult<FeatureStoreTag> upsertTag(TrainingDataset trainingDataset, String name, String value)
throws FeatureStoreMetadataException, FeaturestoreException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public AttachMetadataResult<FeatureStoreTag> upsertTags(Featuregroup featureGroup, Map<String, String> tags)
throws FeatureStoreMetadataException, FeaturestoreException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public AttachMetadataResult<FeatureStoreTag> upsertTags(FeatureView featureView, Map<String, String> tags)
throws FeatureStoreMetadataException, FeaturestoreException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public AttachMetadataResult<FeatureStoreTag> upsertTags(TrainingDataset trainingDataset, Map<String, String> tags)
throws FeatureStoreMetadataException, FeaturestoreException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public void deleteTag(Featuregroup featureGroup, String name)
throws FeatureStoreMetadataException, FeaturestoreException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public void deleteTag(TrainingDataset trainingDataset, String name)
throws FeatureStoreMetadataException, FeaturestoreException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public void deleteTag(FeatureView featureView, String name)
throws FeatureStoreMetadataException, FeaturestoreException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public void deleteTags(Featuregroup featureGroup) throws FeaturestoreException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public void deleteTags(TrainingDataset trainingDataset) throws FeaturestoreException {
throw new IllegalArgumentException("API not supported in the community edition");
}

@Override
public void deleteTags(FeatureView featureView) throws FeaturestoreException {
throw new IllegalArgumentException("API not supported in the community edition");
}
}

0 comments on commit 0f5a33c

Please sign in to comment.