public final class AnchorConfigWithKey extends AnchorConfig
type and default are optional.
<anchor name 1>: {
source: <source name>
key: <key expression>
keyAlias: <key alias expression>
features: {
<feature name>: {
def: <feature expression>,
type: <feature type>,
default: <default value>
}
...
}
}
<anchor name 2>: {
source: <source name 2>
key: <key expression 2>
keyAlias: <key alias expression>
features: {
<feature name>: <feature expression>,
...
}
}
In the following, the fields key.sqlExpr and def.sqlExpr should be used simultaneously.
The fields type and default are optional.
<anchor name 3>: {
source: <source name>
key.sqlExpr: <key expression>
keyAlias: <key alias expression>
features: {
<feature name>: {
def.sqlExpr: <feature expression>,
type: <feature type>,
default: <default value>
}
...
}
}
In the following, the fields 'lateralViewParameters', 'filter', 'groupBy' and 'limit' are optional.
Further, within 'lateralViewParameters', 'lateralViewFilter' is optional as well.
<anchor name 4>: {
source: <source name>
key: <key field>
keyAlias: <key alias expression>
lateralViewParameters: {
lateralViewDef: <view def expr>
lateralViewItemAlias: <item alias>
lateralViewFilter: <filter expr>
}
features: {
<feature name>: {
def: <column name>
aggregation: <aggregation type>
window: <length of window time>
filter: <string>
groupBy: <column name>
limit: <int>
}
}
}
EXTRACTOR, FEATURES, KEY, KEY_ALIAS, KEY_EXTRACTOR, KEY_MVEL, KEY_SQL_EXPR, LATERAL_VIEW_PARAMS, SOURCE, TRANSFORMER| Constructor and Description |
|---|
AnchorConfigWithKey(java.lang.String source,
TypedKey typedKey,
LateralViewParams lateralViewParams,
java.util.Map<java.lang.String,FeatureConfig> features)
Constructor
|
AnchorConfigWithKey(java.lang.String source,
TypedKey typedKey,
java.util.List<java.lang.String> keyAlias,
LateralViewParams lateralViewParams,
java.util.Map<java.lang.String,FeatureConfig> features)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.List<java.lang.String> |
getKey() |
java.util.Optional<java.util.List<java.lang.String>> |
getKeyAlias() |
java.util.Optional<LateralViewParams> |
getLateralViewParams() |
TypedKey |
getTypedKey() |
int |
hashCode() |
java.lang.String |
toString() |
getFeatures, getSourcepublic AnchorConfigWithKey(java.lang.String source,
TypedKey typedKey,
java.util.List<java.lang.String> keyAlias,
LateralViewParams lateralViewParams,
java.util.Map<java.lang.String,FeatureConfig> features)
source - source name (defined in sources section) or HDFS/Dali pathtypedKey - the TypedKey objectkeyAlias - the list of key aliaslateralViewParams - LateralViewParams objectfeatures - Map of feature names to FeatureConfigpublic AnchorConfigWithKey(java.lang.String source,
TypedKey typedKey,
LateralViewParams lateralViewParams,
java.util.Map<java.lang.String,FeatureConfig> features)
source - source name (defined in sources section) or HDFS/Dali pathtypedKey - the TypedKey objectlateralViewParams - LateralViewParams objectfeatures - Map of feature names to FeatureConfigpublic java.util.List<java.lang.String> getKey()
public TypedKey getTypedKey()
public java.util.Optional<java.util.List<java.lang.String>> getKeyAlias()
public java.util.Optional<LateralViewParams> getLateralViewParams()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class AnchorConfigpublic int hashCode()
hashCode in class AnchorConfig