-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HWORKS-1056] Missing interface implementation in community build
- Loading branch information
Showing
1 changed file
with
138 additions
and
0 deletions.
There are no files selected for viewing
138 changes: 138 additions & 0 deletions
138
...c/main/java/io/hops/hopsworks/common/featurestore/metadata/FeatureStoreTagController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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"); | ||
} | ||
} |