public class CustomsFeaturesCombiner extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<String,Event>>,org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<String,CustomsFeatures>>>
CustomsFeatures
CustomsFeaturesCombiner is a Combine.CombineFn
that will combine a windowed collection of
KV
objects, where the key is an arbitrary string and the value is an event, into a
collection of CustomsFeatures
objects.
For each key in the input collection, all events keyed with that key are combined and processed together to extract features for the resulting output collection.
The key is a arbitrary string, for example a source IP address. In this case, the resulting
CustomsFeatures
object will contain features extracted for all events associated with
that IP address.
Modifier and Type | Class and Description |
---|---|
static class |
CustomsFeaturesCombiner.CustomsFeaturesCombineFn
Combine.CombineFn for creating collections of CustomsFeatures |
Constructor and Description |
---|
CustomsFeaturesCombiner() |
Modifier and Type | Method and Description |
---|---|
org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<String,CustomsFeatures>> |
expand(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<String,Event>> input) |
public org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<String,CustomsFeatures>> expand(org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<String,Event>> input)
expand
in class org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<String,Event>>,org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<String,CustomsFeatures>>>
Copyright © 2022. All rights reserved.