public class TridentOperationContext extends Object implements IMetricsContext
Constructor and Description |
---|
TridentOperationContext(TopologyContext topoContext,
TridentTuple.Factory factory) |
TridentOperationContext(TridentOperationContext parent,
TridentTuple.Factory factory) |
Modifier and Type | Method and Description |
---|---|
int |
getPartitionIndex() |
TridentTupleView.ProjectionFactory |
makeProjectionFactory(Fields fields) |
int |
numPartitions() |
CombinedMetric |
registerMetric(String name,
ICombiner combiner,
int timeBucketSizeInSecs) |
ReducedMetric |
registerMetric(String name,
IReducer reducer,
int timeBucketSizeInSecs) |
<T extends IMetric> |
registerMetric(String name,
T metric,
int timeBucketSizeInSecs) |
public TridentOperationContext(TopologyContext topoContext, TridentTuple.Factory factory)
public TridentOperationContext(TridentOperationContext parent, TridentTuple.Factory factory)
public TridentTupleView.ProjectionFactory makeProjectionFactory(Fields fields)
public int numPartitions()
public int getPartitionIndex()
public <T extends IMetric> T registerMetric(String name, T metric, int timeBucketSizeInSecs)
registerMetric
in interface IMetricsContext
public ReducedMetric registerMetric(String name, IReducer reducer, int timeBucketSizeInSecs)
registerMetric
in interface IMetricsContext
public CombinedMetric registerMetric(String name, ICombiner combiner, int timeBucketSizeInSecs)
registerMetric
in interface IMetricsContext
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.