Package backtype.storm.tuple

Examples of backtype.storm.tuple.Fields


  }

  @Override
  public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("CompIndex", "Tuple", "Hash"));
  }
View Full Code Here


  }

  @Override
  public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declareStream(SystemParameters.DUMP_RESULTS_STREAM, new Fields(
        SystemParameters.DUMP_RESULTS));
  }
View Full Code Here

  }

  @Override
  public void declareOutputFields(OutputFieldsDeclarer declarer) {
    declarer.declare(new Fields("CompIndex", "Tuple", "Hash"));
  }
View Full Code Here

  }

  @Override
  public void declareOutputFields(OutputFieldsDeclarer declarer) {
    if (MyUtilities.isAckEveryTuple(_conf) || _hierarchyPosition == FINAL_COMPONENT)
      declarer.declareStream(SystemParameters.EOF_STREAM, new Fields(SystemParameters.EOF));

    final List<String> outputFields = new ArrayList<String>();
    if (MyUtilities.isManualBatchingMode(_conf)) {
      outputFields.add(StormComponent.COMP_INDEX);
      outputFields.add(StormComponent.TUPLE); // string
    } else {
      outputFields.add(StormComponent.COMP_INDEX);
      outputFields.add(StormComponent.TUPLE); // list of string
      outputFields.add(StormComponent.HASH);
    }
    if (MyUtilities.isCustomTimestampMode(getConf()))
      outputFields.add(StormComponent.TIMESTAMP);
    declarer.declareStream(SystemParameters.DATA_STREAM, new Fields(outputFields));
  }
View Full Code Here

    _rightHashIndexes = cp.getParents()[1].getHashIndexes();

    final int parallelism = SystemParameters.getInt(conf, getID() + "_PAR");
    _full_ID = getID() + "_" + _tableName;
    final InputDeclarer currentBolt = builder.setBolt(_full_ID, this, parallelism);
    currentBolt.fieldsGrouping(_harmonizer.getID(), new Fields("Hash"));

    if (getHierarchyPosition() == FINAL_COMPONENT && (!MyUtilities.isAckEveryTuple(conf)))
      killer.registerComponent(this, parallelism);

    if (cp.getPrintOut() && _operatorChain.isBlocking())
View Full Code Here

  @Override
  public void declareOutputFields(OutputFieldsDeclarer declarer) {
    if (_hierarchyPosition != FINAL_COMPONENT)
      // stage not the final
      // one
      declarer.declare(new Fields("CompIndex", "Tuple", "Hash"));
    else if (!MyUtilities.isAckEveryTuple(_conf))
      declarer.declareStream(SystemParameters.EOF_STREAM, new Fields(SystemParameters.EOF));
  }
View Full Code Here

  }

  @Override
  public void declareOutputFields(OutputFieldsDeclarer declarer) {
    if (MyUtilities.isAckEveryTuple(_conf) || _hierarchyPosition == FINAL_COMPONENT)
      declarer.declareStream(SystemParameters.EOF_STREAM, new Fields(SystemParameters.EOF));
    declarer.declareStream(SystemParameters.DATA_STREAM, new Fields("CompIndex", "Tuple",
        "Hash"));
  }
View Full Code Here

    if (_hierarchyPosition == FINAL_COMPONENT) { // then its an intermediate
      // stage not the final
      // one
      if (!MyUtilities.isAckEveryTuple(_conf))
        declarer.declareStream(SystemParameters.EOF_STREAM,
            new Fields(SystemParameters.EOF));
    } else {
      final List<String> outputFields = new ArrayList<String>();
      if (MyUtilities.isManualBatchingMode(_conf)) {
        outputFields.add(StormComponent.COMP_INDEX);
        outputFields.add(StormComponent.TUPLE); // string
      } else {
        outputFields.add(StormComponent.COMP_INDEX);
        outputFields.add(StormComponent.TUPLE); // list of string
        outputFields.add(StormComponent.HASH);
      }
      if (MyUtilities.isCustomTimestampMode(_conf))
        outputFields.add(StormComponent.TIMESTAMP);
      declarer.declareStream(SystemParameters.DATA_STREAM, new Fields(outputFields));
    }
  }
View Full Code Here

    dataStreamFields.add(StormComponent.TUPLE);
    dataStreamFields.add(StormComponent.HASH);
    dataStreamFields.add(StormComponent.EPOCH);
    if (MyUtilities.isCustomTimestampMode(getConf()))
      dataStreamFields.add(StormComponent.TIMESTAMP);
    declarer.declareStream(SystemParameters.ThetaDataMigrationJoinerToReshuffler, new Fields(
        dataStreamFields));

    // 3) Acks back to the ThetaMappingAssigner
    declarer.declareStream(SystemParameters.ThetaJoinerAcks, new Fields(StormComponent.MESSAGE));
  }
View Full Code Here

        this.fileName = fileName;
    }

    @Override
    public void declareOutputFields(OutputFieldsDeclarer declarer) {
        declarer.declare(new Fields(JSON_OUTPUT_FIELD));
    }
View Full Code Here

TOP

Related Classes of backtype.storm.tuple.Fields

Copyright © 2018 www.massapicom. 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.