public class Pipeline extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Pipeline.CalculateFlowStatistics |
static class |
Pipeline.KeyFlowBy
Maps flow documents into pairs of compound keys and aggregates.
|
static class |
Pipeline.ReadFromKafka |
static class |
Pipeline.SumAndTopK |
static class |
Pipeline.SumsAndTopKs |
static class |
Pipeline.TotalAndSummary |
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 Pipeline.TotalAndSummary |
aggregateParentTotal(String transformPrefix,
org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<CompoundKey,Aggregate>> child) |
static Pipeline.SumAndTopK |
aggregateSumAndTopK(String transformPrefix,
org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<CompoundKey,Aggregate>> groupedByKey,
int k) |
static Pipeline.SumsAndTopKs |
aggregateSumsAndTopKs(String transformPrefix,
org.apache.beam.sdk.values.PCollection<org.opennms.netmgt.flows.persistence.model.FlowDocument> input,
CompoundKeyType typeWithTos,
CompoundKeyType typeWithoutTos,
int k) |
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 fixedWindowSize,
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(FlowSummaryData fsd) |
static FlowSummaryData |
toFlowSummaryData(AggregationType aggregationType,
org.apache.beam.sdk.transforms.windowing.IntervalWindow window,
org.apache.beam.sdk.values.KV<CompoundKey,Aggregate> el,
int ranking) |
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 earlyProcessingDelay,
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 fixedWindowSize,
org.joda.time.Duration maxFlowDuration)
FlowDocument to all of the windows that overlap with the flow range.public static FlowSummaryData toFlowSummaryData(AggregationType aggregationType, org.apache.beam.sdk.transforms.windowing.IntervalWindow window, org.apache.beam.sdk.values.KV<CompoundKey,Aggregate> el, int ranking)
public static FlowSummary toFlowSummary(FlowSummaryData fsd)
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 earlyProcessingDelay,
org.joda.time.Duration lateProcessingDelay,
org.joda.time.Duration allowedLateness)
public static Pipeline.TotalAndSummary aggregateParentTotal(String transformPrefix, org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<CompoundKey,Aggregate>> child)
public static Pipeline.SumsAndTopKs aggregateSumsAndTopKs(String transformPrefix, org.apache.beam.sdk.values.PCollection<org.opennms.netmgt.flows.persistence.model.FlowDocument> input, CompoundKeyType typeWithTos, CompoundKeyType typeWithoutTos, int k)
public static Pipeline.SumAndTopK aggregateSumAndTopK(String transformPrefix, org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<CompoundKey,Aggregate>> groupedByKey, int k)
Copyright © 2021. All rights reserved.