public final class TimeWindowFeatureConfig extends FeatureConfig
<feature name>: {
def: <column name>
aggregation: <aggregation type>
window: <length of window time>
filter: <string>
groupBy: <column name>
limit: <int>
decay: <string>
weight: <string>
embeddingSize: <int>
}
2. a nearline feature config
AGGREGATION, DECAY, DEF, DEF_MVEL, DEF_SQL_EXPR, DEFAULT, EMBEDDING_SIZE, FILTER, FILTER_MVEL, GROUPBY, LIMIT, PARAMETERS, SIZE, SLIDING_INTERVAL, TYPE, WEIGHT, WINDOW, WINDOW_PARAMETERS| Constructor and Description |
|---|
TimeWindowFeatureConfig(java.lang.String columnExpr,
ExprType columnExprType,
TimeWindowAggregationType aggregation,
WindowParametersConfig windowParameters,
java.lang.String filter,
ExprType filterExprType,
java.lang.String groupBy,
java.lang.Integer limit,
java.lang.String decay,
java.lang.String weight)
Deprecated.
please use the constructor with all parameters
|
TimeWindowFeatureConfig(java.lang.String columnExpr,
TimeWindowAggregationType aggregation,
WindowParametersConfig windowParameters,
java.lang.String filter,
java.lang.String groupBy,
java.lang.Integer limit,
java.lang.String decay,
java.lang.String weight)
Deprecated.
please use the constructor with all parameters
|
TimeWindowFeatureConfig(TypedExpr typedColumnExpr,
TimeWindowAggregationType aggregation,
WindowParametersConfig windowParameters,
TypedExpr typedFilter,
java.lang.String groupBy,
java.lang.Integer limit,
java.lang.String decay,
java.lang.String weight,
java.lang.Integer embeddingSize)
Constructor with all parameters
|
TimeWindowFeatureConfig(TypedExpr typedColumnExpr,
TimeWindowAggregationType aggregation,
WindowParametersConfig windowParameters,
TypedExpr typedFilter,
java.lang.String groupBy,
java.lang.Integer limit,
java.lang.String decay,
java.lang.String weight,
java.lang.Integer embeddingSize,
FeatureTypeConfig featureTypeConfig,
java.lang.String defaultValue)
Constructor with all parameters
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
TimeWindowAggregationType |
getAggregation() |
java.lang.String |
getColumnExpr() |
ExprType |
getColumnExprType() |
java.util.Optional<java.lang.String> |
getDecay() |
java.util.Optional<java.lang.String> |
getDefaultValue() |
java.util.Optional<java.lang.Integer> |
getEmbeddingSize() |
java.util.Optional<FeatureTypeConfig> |
getFeatureTypeConfig() |
java.util.Optional<java.lang.String> |
getFilter() |
java.util.Optional<ExprType> |
getFilterExprType() |
java.util.Optional<java.lang.String> |
getGroupBy() |
java.util.Optional<java.lang.Integer> |
getLimit() |
TypedExpr |
getTypedColumnExpr() |
java.util.Optional<TypedExpr> |
getTypedFilter() |
java.util.Optional<java.lang.String> |
getWeight() |
java.time.Duration |
getWindow() |
WindowParametersConfig |
getWindowParameters() |
int |
hashCode() |
java.lang.String |
toString() |
getParameterspublic TimeWindowFeatureConfig(TypedExpr typedColumnExpr, TimeWindowAggregationType aggregation, WindowParametersConfig windowParameters, TypedExpr typedFilter, java.lang.String groupBy, java.lang.Integer limit, java.lang.String decay, java.lang.String weight, java.lang.Integer embeddingSize, FeatureTypeConfig featureTypeConfig, java.lang.String defaultValue)
typedColumnExpr - The column/field on which the aggregation will be computed, with the expr typeaggregation - Aggregation type as specified in [[TimeWindowAggregationType]]windowParameters - windowParameters as specified in [[WindowParametersConfig]]typedFilter - Spark SQL / MVEL expression for filtering the fact data before aggregation, with expr typegroupBy - column/field on which the data will be grouped by before aggregationlimit - positive integer to limit the number of records for each groupdecay - not supported currentlyweight - not supported currentlyembeddingSize - embedding sizefeatureTypeConfig - featureTypeConfig for this faeturepublic TimeWindowFeatureConfig(TypedExpr typedColumnExpr, TimeWindowAggregationType aggregation, WindowParametersConfig windowParameters, TypedExpr typedFilter, java.lang.String groupBy, java.lang.Integer limit, java.lang.String decay, java.lang.String weight, java.lang.Integer embeddingSize)
typedColumnExpr - The column/field on which the aggregation will be computed, with the expr typeaggregation - Aggregation type as specified in [[TimeWindowAggregationType]]windowParameters - windowParameters as specified in [[WindowParametersConfig]]typedFilter - Spark SQL / MVEL expression for filtering the fact data before aggregation, with expr typegroupBy - column/field on which the data will be grouped by before aggregationlimit - positive integer to limit the number of records for each groupdecay - not supported currentlyweight - not supported currentlyembeddingSize - embedding sizepublic TimeWindowFeatureConfig(java.lang.String columnExpr,
ExprType columnExprType,
TimeWindowAggregationType aggregation,
WindowParametersConfig windowParameters,
java.lang.String filter,
ExprType filterExprType,
java.lang.String groupBy,
java.lang.Integer limit,
java.lang.String decay,
java.lang.String weight)
columnExpr - The column/field on which the aggregation will be computedcolumnExprType - The column/field expr typeaggregation - Aggregation type as specified in [[TimeWindowAggregationType]]windowParameters - windowParameters as specified in [[WindowParametersConfig]]filter - Spark SQL / MVEL expression for filtering the fact data before aggregationfilterExprType - the filter expression typegroupBy - column/field on which the data will be grouped by before aggregationlimit - positive integer to limit the number of records for each groupdecay - not supported currentlyweight - not supported currently@Deprecated
public TimeWindowFeatureConfig(java.lang.String columnExpr,
TimeWindowAggregationType aggregation,
WindowParametersConfig windowParameters,
java.lang.String filter,
java.lang.String groupBy,
java.lang.Integer limit,
java.lang.String decay,
java.lang.String weight)
columnExpr - The column/field on which the aggregation will be computedaggregation - Aggregation type as specified in [[TimeWindowAggregationType]]windowParameters - windowParameters as specified in [[WindowParametersConfig]]filter - Spark SQL expression for filtering the fact data before aggregationgroupBy - column/field on which the data will be grouped by before aggregationlimit - positive integer to limit the number of records for each groupdecay - not supported currentlyweight - not supported currentlypublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getColumnExpr()
public TimeWindowAggregationType getAggregation()
public java.time.Duration getWindow()
public WindowParametersConfig getWindowParameters()
public java.util.Optional<java.lang.String> getFilter()
public java.util.Optional<java.lang.String> getGroupBy()
public java.util.Optional<java.lang.Integer> getLimit()
public java.util.Optional<java.lang.String> getDecay()
public java.util.Optional<java.lang.String> getWeight()
public ExprType getColumnExprType()
public java.util.Optional<ExprType> getFilterExprType()
public TypedExpr getTypedColumnExpr()
public java.util.Optional<TypedExpr> getTypedFilter()
public java.util.Optional<java.lang.Integer> getEmbeddingSize()
public java.util.Optional<java.lang.String> getDefaultValue()
getDefaultValue in class FeatureConfigpublic java.util.Optional<FeatureTypeConfig> getFeatureTypeConfig()
getFeatureTypeConfig in class FeatureConfigpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object