public class Pipeline extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Pipeline.CalculateFlowStatistics |
static class |
Pipeline.CalculateTopKGroups
Used to calculate the top K groups using the given grouping function.
|
static class |
Pipeline.CalculateTotalBytes
Used to calculate the total bytes derived from flows for the given grouping.
|
static class |
Pipeline.ReadFromKafka |
static class |
Pipeline.WindowedFlows |
static class |
Pipeline.WriteToElasticsearch |
static class |
Pipeline.WriteToKafka |
| Modifier and Type | Field and Description |
|---|---|
static com.swrve.ratelimitedlogger.RateLimitedLog |
RATE_LIMITED_LOG |
| Constructor and Description |
|---|
Pipeline() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.beam.sdk.transforms.ParDo.SingleOutput<org.opennms.netmgt.flows.persistence.model.FlowDocument,org.opennms.netmgt.flows.persistence.model.FlowDocument> |
attachTimestamps(org.joda.time.Duration maxFlowDuration)
Dispatches a
FlowDocument to all of the windows that overlap with the flow range. |
static org.apache.beam.sdk.Pipeline |
create(NephronOptions options)
Creates a new pipeline from the given set of runtime options.
|
static org.apache.beam.sdk.io.kafka.TimestampPolicyFactory<String,org.opennms.netmgt.flows.persistence.model.FlowDocument> |
getKafkaInputTimestampPolicyFactory(org.joda.time.Duration maxDelay) |
static void |
registerCoders(org.apache.beam.sdk.Pipeline p) |
static FlowSummary |
toFlowSummary(AggregationType aggregationType,
org.apache.beam.sdk.transforms.windowing.IntervalWindow window,
org.apache.beam.sdk.values.KV<Groupings.CompoundKey,BytesInOut> el) |
static org.apache.beam.sdk.transforms.windowing.Window<org.opennms.netmgt.flows.persistence.model.FlowDocument> |
toWindow(org.joda.time.Duration fixedWindowSize,
org.joda.time.Duration lateProcessingDelay,
org.joda.time.Duration allowedLateness) |
public static final com.swrve.ratelimitedlogger.RateLimitedLog RATE_LIMITED_LOG
public static org.apache.beam.sdk.Pipeline create(NephronOptions options)
options - runtime optionspublic static void registerCoders(org.apache.beam.sdk.Pipeline p)
public static org.apache.beam.sdk.io.kafka.TimestampPolicyFactory<String,org.opennms.netmgt.flows.persistence.model.FlowDocument> getKafkaInputTimestampPolicyFactory(org.joda.time.Duration maxDelay)
public static org.apache.beam.sdk.transforms.ParDo.SingleOutput<org.opennms.netmgt.flows.persistence.model.FlowDocument,org.opennms.netmgt.flows.persistence.model.FlowDocument> attachTimestamps(org.joda.time.Duration maxFlowDuration)
FlowDocument to all of the windows that overlap with the flow range.public static FlowSummary toFlowSummary(AggregationType aggregationType, org.apache.beam.sdk.transforms.windowing.IntervalWindow window, org.apache.beam.sdk.values.KV<Groupings.CompoundKey,BytesInOut> el)
public static org.apache.beam.sdk.transforms.windowing.Window<org.opennms.netmgt.flows.persistence.model.FlowDocument> toWindow(org.joda.time.Duration fixedWindowSize,
org.joda.time.Duration lateProcessingDelay,
org.joda.time.Duration allowedLateness)
Copyright © 2020. All rights reserved.