storm.trident.operation
Class TridentOperationContext
java.lang.Object
storm.trident.operation.TridentOperationContext
- All Implemented Interfaces:
- IMetricsContext
public class TridentOperationContext
- extends Object
- implements IMetricsContext
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TridentOperationContext
public TridentOperationContext(TopologyContext topoContext,
TridentTuple.Factory factory)
TridentOperationContext
public TridentOperationContext(TridentOperationContext parent,
TridentTuple.Factory factory)
makeProjectionFactory
public TridentTupleView.ProjectionFactory makeProjectionFactory(Fields fields)
numPartitions
public int numPartitions()
getPartitionIndex
public int getPartitionIndex()
registerMetric
public <T extends IMetric> T registerMetric(String name,
T metric,
int timeBucketSizeInSecs)
- Specified by:
registerMetric in interface IMetricsContext
registerMetric
public ReducedMetric registerMetric(String name,
IReducer reducer,
int timeBucketSizeInSecs)
- Specified by:
registerMetric in interface IMetricsContext
registerMetric
public CombinedMetric registerMetric(String name,
ICombiner combiner,
int timeBucketSizeInSecs)
- Specified by:
registerMetric in interface IMetricsContext
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.