当前位置: 首页>>代码示例>>Java>>正文


Java ReducerAggregator类代码示例

本文整理汇总了Java中storm.trident.operation.ReducerAggregator的典型用法代码示例。如果您正苦于以下问题:Java ReducerAggregator类的具体用法?Java ReducerAggregator怎么用?Java ReducerAggregator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ReducerAggregator类属于storm.trident.operation包,在下文中一共展示了ReducerAggregator类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: persistentAggregate

import storm.trident.operation.ReducerAggregator; //导入依赖的package包/类
public TridentState persistentAggregate(StateSpec spec, Fields inputFields, ReducerAggregator agg, Fields functionFields) {
    return _stream.partitionBy(_groupFields)
            .partitionPersist(spec,
                TridentUtils.fieldsUnion(_groupFields, inputFields),
                new MapReducerAggStateUpdater(agg, _groupFields, inputFields),
                TridentUtils.fieldsConcat(_groupFields, functionFields));
}
 
开发者ID:zhangjunfang,项目名称:jstorm-0.9.6.3-,代码行数:8,代码来源:GroupedStream.java

示例2: partitionAggregate

import storm.trident.operation.ReducerAggregator; //导入依赖的package包/类
public Stream partitionAggregate(ReducerAggregator agg, Fields functionFields) {
    return partitionAggregate(null, agg, functionFields);
}
 
开发者ID:zhangjunfang,项目名称:jstorm-0.9.6.3-,代码行数:4,代码来源:Stream.java

示例3: aggregate

import storm.trident.operation.ReducerAggregator; //导入依赖的package包/类
public Stream aggregate(ReducerAggregator agg, Fields functionFields) {
    return aggregate(null, agg, functionFields);
}
 
开发者ID:zhangjunfang,项目名称:jstorm-0.9.6.3-,代码行数:4,代码来源:Stream.java

示例4: persistentAggregate

import storm.trident.operation.ReducerAggregator; //导入依赖的package包/类
public TridentState persistentAggregate(StateSpec spec, ReducerAggregator agg, Fields functionFields) {
    return persistentAggregate(spec, null, agg, functionFields);
}
 
开发者ID:zhangjunfang,项目名称:jstorm-0.9.6.3-,代码行数:4,代码来源:Stream.java

示例5: ReducerAggregatorImpl

import storm.trident.operation.ReducerAggregator; //导入依赖的package包/类
public ReducerAggregatorImpl(ReducerAggregator agg) {
    _agg = agg;
}
 
开发者ID:zhangjunfang,项目名称:jstorm-0.9.6.3-,代码行数:4,代码来源:ReducerAggregatorImpl.java

示例6: ReducerAggStateUpdater

import storm.trident.operation.ReducerAggregator; //导入依赖的package包/类
public ReducerAggStateUpdater(ReducerAggregator agg) {
    _agg = agg;
}
 
开发者ID:zhangjunfang,项目名称:jstorm-0.9.6.3-,代码行数:4,代码来源:ReducerAggStateUpdater.java

示例7: MapReducerAggStateUpdater

import storm.trident.operation.ReducerAggregator; //导入依赖的package包/类
public MapReducerAggStateUpdater(ReducerAggregator agg, Fields groupFields, Fields inputFields) {
    _agg = agg;
    _groupFields = groupFields;
    _inputFields = inputFields;
    _factory = new ComboList.Factory(groupFields.size(), 1);
}
 
开发者ID:zhangjunfang,项目名称:jstorm-0.9.6.3-,代码行数:7,代码来源:MapReducerAggStateUpdater.java

示例8: ReducerValueUpdater

import storm.trident.operation.ReducerAggregator; //导入依赖的package包/类
public ReducerValueUpdater(ReducerAggregator agg, List<TridentTuple> tuples) {
    this.agg = agg;
    this.tuples = tuples;
}
 
开发者ID:zhangjunfang,项目名称:jstorm-0.9.6.3-,代码行数:5,代码来源:ReducerValueUpdater.java

示例9: partitionAggregate

import storm.trident.operation.ReducerAggregator; //导入依赖的package包/类
@Override
public ChainedPartitionAggregatorDeclarer partitionAggregate(ReducerAggregator agg, Fields functionFields) {
       return partitionAggregate(null, agg, functionFields);
   }
 
开发者ID:zhangjunfang,项目名称:jstorm-0.9.6.3-,代码行数:5,代码来源:ChainedAggregatorDeclarer.java

示例10: aggregate

import storm.trident.operation.ReducerAggregator; //导入依赖的package包/类
@Override
public ChainedFullAggregatorDeclarer aggregate(ReducerAggregator agg, Fields functionFields) {
       return aggregate(null, agg, functionFields);
   }
 
开发者ID:zhangjunfang,项目名称:jstorm-0.9.6.3-,代码行数:5,代码来源:ChainedAggregatorDeclarer.java

示例11: persistentAggregate

import storm.trident.operation.ReducerAggregator; //导入依赖的package包/类
public TridentState persistentAggregate(StateFactory stateFactory, ReducerAggregator agg, Fields functionFields) {
    return persistentAggregate(new StateSpec(stateFactory), agg, functionFields);
}
 
开发者ID:songtk,项目名称:learn_jstorm,代码行数:4,代码来源:Stream.java

示例12: partitionAggregate

import storm.trident.operation.ReducerAggregator; //导入依赖的package包/类
public ChainedPartitionAggregatorDeclarer partitionAggregate(ReducerAggregator agg, Fields functionFields) {
    return partitionAggregate(null, agg, functionFields);
}
 
开发者ID:songtk,项目名称:learn_jstorm,代码行数:4,代码来源:ChainedAggregatorDeclarer.java

示例13: aggregate

import storm.trident.operation.ReducerAggregator; //导入依赖的package包/类
public ChainedFullAggregatorDeclarer aggregate(ReducerAggregator agg, Fields functionFields) {
    return aggregate(null, agg, functionFields);
}
 
开发者ID:songtk,项目名称:learn_jstorm,代码行数:4,代码来源:ChainedAggregatorDeclarer.java


注:本文中的storm.trident.operation.ReducerAggregator类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。