Examples of Values


Examples of backtype.storm.tuple.Values

    else if (_secondEmitterIndex.equals(inputComponentIndex))
      taskIndices = _currentAction.getColumnExchangeReducersByNewId(sourceID);
    else
      throw new RuntimeException("inputComponentIndex does not conform with any relation");
    for (int i = 0; i < taskIndices.length; i++) {
      final Values tplSend = new Values(inputComponentIndex, MyUtilities.stringToTuple(
          inputTupleString, _conf), inputTupleHash, _currentEpochNumber,
          _currentDimExcDis);
      appendTimestampMigration(stormTupleRcv, tplSend);
      _collector.emitDirect(_taskPhysicalMapping.get(fooLogicalMappings(logicalMappings, taskIndices[i])),
          SystemParameters.ThetaDataMigrationReshufflerToJoiner, tplSend);
View Full Code Here

Examples of backtype.storm.tuple.Values

    }

    final int[] taskIndices = Advisor.getAssignedReducers(isFirstRel, _numOfJoinWorkersTasks,
        currDim[0], currDim[1]);
    for (int i = 0; i < taskIndices.length; i++) {
      final Values tplSend = new Values(inputComponentIndex, MyUtilities.stringToTuple(
          inputTupleString, _conf), inputTupleHash, _currentEpochNumber,
          _currentDimExcDis);
      appendTimestampNew(tplSend);
      _collector.emitDirect(_taskPhysicalMapping.get(fooLogicalMappings(logicalMappings, taskIndices[i])),
          SystemParameters.ThetaDataReshufflerToJoiner, tplSend);
View Full Code Here

Examples of backtype.storm.tuple.Values

        for (int i = 1; i < _resufflerIndex.size(); i++)
          _collector.emitDirect(
              _resufflerIndex.get(i),
              SystemParameters.ThetaSynchronizerSignal,
              new Values(SystemParameters.ThetaSignalStop, advisorcurrentAction
                  .toString()));
        // emit the stop signal with mapping
        _mAdvisor.updateMapping(advisorcurrentAction);
        // **************************Local changes
        _currentState = state.FLUSHING;
        _currentEpochNumber++;
        _currentAction = advisorcurrentAction;
        _currentDimExcDis = getNewMapping(_currentAction);

        LOG.info(_ID + ":" + _taskPhysicalID
            + " :Reshuffler (sending STOP) & current mapping changing to :("
            + _currentAction.toString() + ") with epoch number:" + _currentEpochNumber
            + " (" + _mAdvisor.totalRowTuples + "," + _mAdvisor.totalColumnTuples + ")");
        updateLogicalMappings();
        _collector.emit(SystemParameters.ThetaReshufflerSignal, new Values(
            SystemParameters.ThetaSignalStop, advisorcurrentAction.toString()));
        // ///*****************************
      }
  }
 
View Full Code Here

Examples of backtype.storm.tuple.Values

            this.set.add(tuple.getString(1));
        }

        @Override
        public void finishBatch() {
            collector.emit(new Values(this.id, this.set.size()));
        }
View Full Code Here

Examples of backtype.storm.tuple.Values

            this.count += tuple.getInteger(1);
        }

        @Override
        public void finishBatch() {
            this.collector.emit(new Values(this.id, this.count));
        }
View Full Code Here

Examples of backtype.storm.tuple.Values

        String delimVal = columns.get(this.columnKeyField);
        if (delimVal != null) {
            String[] vals = delimVal.split(this.delimiter);
            for (String val : vals) {
                if (this.isDrpc) {
                    values.add(new Values(input.getValue(0), rowKey, val));
                } else {
                    values.add(new Values(rowKey, val));
                }
            }
        }
        return values;
    }
View Full Code Here

Examples of backtype.storm.tuple.Values

    public void nextTuple() {
        final String[] words = new String[] { "nathan", "mike", "jackson", "golda", "bertels" };
        final Random rand = new Random();
        final String word = words[rand.nextInt(words.length)];
        this.collector.emit(new Values(word), UUID.randomUUID());
        Thread.yield();
    }
View Full Code Here

Examples of backtype.storm.tuple.Values

    public List<Values> mapToValues(String rowKey, Map<String, String> columns, Tuple input) {
        List<Values> values = new ArrayList<Values>();
        Set<String> vals = columns.keySet();
        for(String columnName : vals){
            if(this.isDrpc){
                values.add(new Values(input.getValue(0), rowKey, columnName));
            } else {
                values.add(new Values(rowKey, columnName));
            }
        }
        return values;
    }
View Full Code Here

Examples of biz.paluch.logging.gelf.Values

    }

    @Override
    public Values getValues(MessageField field) {
        if (field instanceof MdcMessageField) {
            return new Values(field.getName(), getValue((MdcMessageField) field));
        }

        if (field instanceof DynamicMdcMessageField) {
            return getMdcValues((DynamicMdcMessageField) field);
        }
View Full Code Here

Examples of com.badlogic.gdx.utils.ArrayMap.Values

  /** Returns an iterator for the values in the map. Remove is supported. Note that the same iterator instance is returned each
   * time this method is called. Use the {@link Entries} constructor for nested or multithreaded iteration. */
  public Values<V> values () {
    if (values1 == null) {
      values1 = new Values(this);
      values2 = new Values(this);
    }
    if (!values1.valid) {
      values1.reset();
      values1.valid = true;
      values2.valid = false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.