Interface FeatureCatalog
-
- All Known Implementing Classes:
DefaultCortexFeatureCatalog
public interface FeatureCatalog
Interface for service maintaining the set of Features associated with a DataSource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<com.c12e.cortex.phoenix.Feature>
queryFeatures(java.lang.String project, java.lang.String sourceName)
Get the list of features associated to the DataSource with the given namejava.util.List<com.c12e.cortex.phoenix.Feature>
updateFeatureCatalog(java.lang.String project, java.lang.String sourceName, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> sourceDf, java.lang.Boolean performCalculations)
Updates the set ofFeature
's associated with the DataSource
-
-
-
Method Detail
-
queryFeatures
java.util.List<com.c12e.cortex.phoenix.Feature> queryFeatures(java.lang.String project, java.lang.String sourceName)
Get the list of features associated to the DataSource with the given name- Parameters:
project
- project the DataSource belongs tosourceName
- DataSource name- Returns:
- list of features
- Throws:
java.lang.RuntimeException
- if the features belonging to the DataSource does not exist, etc.
-
updateFeatureCatalog
java.util.List<com.c12e.cortex.phoenix.Feature> updateFeatureCatalog(java.lang.String project, java.lang.String sourceName, org.apache.spark.sql.Dataset<org.apache.spark.sql.Row> sourceDf, java.lang.Boolean performCalculations)
Updates the set ofFeature
's associated with the DataSource- Parameters:
project
- project the DataSource belongs tosourceName
- Cortex DataSource namesourceDf
- data to infer the feature properties fromperformCalculations
- perform analytic calculations- Returns:
- list of features
- Throws:
java.lang.RuntimeException
- if the features belonging to the DataSource does not exist, etc.
-
-