Package com.logicalclocks.hsfs.engine
Class FeatureViewEngineBase<T1 extends QueryBase<T1,T4,T5>,T2 extends FeatureViewBase<T2,T3,T1,T5>,T3 extends FeatureStoreBase<T1>,T4 extends FeatureGroupBase,T5>
java.lang.Object
com.logicalclocks.hsfs.engine.FeatureViewEngineBase<T1,T2,T3,T4,T5>
- Direct Known Subclasses:
FeatureViewEngine,FeatureViewEngine,FeatureViewEngine,FeatureViewEngine
public abstract class FeatureViewEngineBase<T1 extends QueryBase<T1,T4,T5>,T2 extends FeatureViewBase<T2,T3,T1,T5>,T3 extends FeatureStoreBase<T1>,T4 extends FeatureGroupBase,T5>
extends Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringprotected FeatureViewApistatic Stringprotected static final org.slf4j.Loggerprotected TagsApi -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTag(FeatureViewBase featureViewBase, String name, Object value) voidaddTag(FeatureViewBase featureViewBase, String name, Object value, Integer trainingDataVersion) voidvoidvoidvoidvoiddeleteTag(FeatureViewBase featureViewBase, String name) voiddeleteTag(FeatureViewBase featureViewBase, String name, Integer trainingDataVersion) voiddeleteTrainingData(T2 featureView) voiddeleteTrainingData(T2 featureView, Integer trainingDataVersion) voiddeleteTrainingDatasetOnly(T2 featureView) voiddeleteTrainingDatasetOnly(T2 featureView, Integer trainingDataVersion) abstract T2getBatchQuery(T2 featureView, Date startTime, Date endTime, Boolean withLabels, Integer trainingDataVersion, Class<T1> queryType) protected Dateprotected DategetTag(FeatureViewBase featureViewBase, String name) getTag(FeatureViewBase featureViewBase, String name, Integer trainingDataVersion) getTags(FeatureViewBase featureViewBase) getTags(FeatureViewBase featureViewBase, Integer trainingDataVersion) static List<TrainingDatasetFeature>makeLabelFeatures(QueryBase query, List<String> labels) protected voidsetEventTime(FeatureViewBase featureView, TrainingDatasetBase trainingDataset) abstract T2
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER -
featureViewApi
-
tagsApi
-
AMBIGUOUS_LABEL_ERROR
-
LABEL_NOT_EXIST_ERROR
-
-
Constructor Details
-
FeatureViewEngineBase
public FeatureViewEngineBase()
-
-
Method Details
-
save
- Throws:
FeatureStoreExceptionIOException
-
makeLabelFeatures
public static List<TrainingDatasetFeature> makeLabelFeatures(QueryBase query, List<String> labels) throws FeatureStoreException - Throws:
FeatureStoreException
-
update
- Throws:
FeatureStoreExceptionIOException
-
get
public abstract T2 get(T3 featureStore, String name, Integer version) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
get
public T2 get(T3 featureStoreBase, String name, Integer version, Class<T2> fvType) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
get
public List<FeatureViewBase> get(T3 featureStoreBase, String name) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
delete
- Throws:
FeatureStoreExceptionIOException
-
delete
public void delete(T3 featureStoreBase, String name, Integer version) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
delete
public void delete(T3 featureStoreBase, String name, Boolean force) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
delete
public void delete(T3 featureStoreBase, String name, Integer version, Boolean force) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
getStartTime
-
getEndTime
-
addTag
public void addTag(FeatureViewBase featureViewBase, String name, Object value) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
addTag
public void addTag(FeatureViewBase featureViewBase, String name, Object value, Integer trainingDataVersion) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
deleteTag
public void deleteTag(FeatureViewBase featureViewBase, String name) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
deleteTag
public void deleteTag(FeatureViewBase featureViewBase, String name, Integer trainingDataVersion) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
getTag
public Object getTag(FeatureViewBase featureViewBase, String name) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
getTag
public Object getTag(FeatureViewBase featureViewBase, String name, Integer trainingDataVersion) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
getTags
public Map<String,Object> getTags(FeatureViewBase featureViewBase) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
getTags
public Map<String,Object> getTags(FeatureViewBase featureViewBase, Integer trainingDataVersion) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
getBatchQuery
public T1 getBatchQuery(T2 featureView, Date startTime, Date endTime, Boolean withLabels, Integer trainingDataVersion, Class<T1> queryType) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
setEventTime
-
deleteTrainingData
public void deleteTrainingData(T2 featureView, Integer trainingDataVersion) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
deleteTrainingData
- Throws:
FeatureStoreExceptionIOException
-
deleteTrainingDatasetOnly
public void deleteTrainingDatasetOnly(T2 featureView, Integer trainingDataVersion) throws FeatureStoreException, IOException - Throws:
FeatureStoreExceptionIOException
-
deleteTrainingDatasetOnly
- Throws:
FeatureStoreExceptionIOException
-