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


Java TridentOperationContext.numPartitions方法代码示例

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


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

示例1: prepare

import storm.trident.operation.TridentOperationContext; //导入方法依赖的package包/类
@Override
public void prepare(Map conf, TridentOperationContext context) {
	partitionNum = context.getPartitionIndex();
	numPartitions = context.numPartitions();
	myturn = partitionNum;
	threshold = Double.valueOf((String) conf.get("THRESHOLD"));
}
 
开发者ID:mvogiatzis,项目名称:first-stories-twitter,代码行数:8,代码来源:RecentTweetsStateQuery.java

示例2: prepare

import storm.trident.operation.TridentOperationContext; //导入方法依赖的package包/类
@Override
public void prepare(Map conf, TridentOperationContext context) {
    _agg.prepare(conf, context);
    this.myPartitionIndex = context.getPartitionIndex();
    this.totalPartitions = context.numPartitions();
}
 
开发者ID:zhangjunfang,项目名称:jstorm-0.9.6.3-,代码行数:7,代码来源:SingleEmitAggregator.java

示例3: prepare

import storm.trident.operation.TridentOperationContext; //导入方法依赖的package包/类
@Override
public void prepare(Map conf, TridentOperationContext context) {
    this.partitionIndex = context.getPartitionIndex();
    this.numPartitions = context.numPartitions();
}
 
开发者ID:eshioji,项目名称:trident-tutorial,代码行数:6,代码来源:Print.java

示例4: prepare

import storm.trident.operation.TridentOperationContext; //导入方法依赖的package包/类
@Override
public void prepare(Map conf, TridentOperationContext context) {
    this.partitionId = context.getPartitionIndex();
    this.numPartitions = context.numPartitions();
}
 
开发者ID:eshioji,项目名称:trident-tutorial,代码行数:6,代码来源:StringCounter.java

示例5: prepare

import storm.trident.operation.TridentOperationContext; //导入方法依赖的package包/类
@Override
public void prepare(final Map map, final TridentOperationContext tridentOperationContext) {
    localPartition = tridentOperationContext.getPartitionIndex() + 1;
    numPartitions = tridentOperationContext.numPartitions();
    Logger.getAnonymousLogger().log(Level.INFO, MessageFormat.format("Preparing {0} for execution. Thread {1}.", getClass().getCanonicalName(), Thread.currentThread().getName()));
}
 
开发者ID:LakkiB,项目名称:mlstorm,代码行数:7,代码来源:BinaryClassifierQuery.java

示例6: prepare

import storm.trident.operation.TridentOperationContext; //导入方法依赖的package包/类
@Override
public void prepare(final Map map, final TridentOperationContext tridentOperationContext) {
    localPartition = tridentOperationContext.getPartitionIndex() + 1;
    numPartitions = tridentOperationContext.numPartitions();
}
 
开发者ID:LakkiB,项目名称:mlstorm,代码行数:6,代码来源:BinaryClassifierStateUpdater.java

示例7: prepare

import storm.trident.operation.TridentOperationContext; //导入方法依赖的package包/类
@Override
public void prepare(final Map map, final TridentOperationContext tridentOperationContext) {
    localPartition = tridentOperationContext.getPartitionIndex();
    numPartitions = tridentOperationContext.numPartitions();
}
 
开发者ID:LakkiB,项目名称:mlstorm,代码行数:6,代码来源:MlStormClustererQuery.java

示例8: prepare

import storm.trident.operation.TridentOperationContext; //导入方法依赖的package包/类
@Override
public void prepare(final Map map, final TridentOperationContext tridentOperationContext) {
    this.partition = tridentOperationContext.getPartitionIndex() + 1;
    this.numPartitions = tridentOperationContext.numPartitions();
}
 
开发者ID:LakkiB,项目名称:mlstorm,代码行数:6,代码来源:PrincipalComponentsQuery.java

示例9: prepare

import storm.trident.operation.TridentOperationContext; //导入方法依赖的package包/类
@Override
public void prepare(final Map conf, final TridentOperationContext context) {
    localPartition = context.getPartitionIndex() + 1;
    numPartitions = context.numPartitions();
}
 
开发者ID:LakkiB,项目名称:mlstorm,代码行数:6,代码来源:PrincipalComponentUpdater.java

示例10: prepare

import storm.trident.operation.TridentOperationContext; //导入方法依赖的package包/类
@Override
   public void prepare(Map conf, TridentOperationContext context) {
this.partitionIndex = context.getPartitionIndex();
this.numPartitions = context.numPartitions();
   }
 
开发者ID:Produban,项目名称:openbus,代码行数:6,代码来源:Print.java


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