Package backtype.storm.topology

Examples of backtype.storm.topology.InputDeclarer


        firstCardinality, secondCardinality, parallelism, -1);
    final String dim = currentMappingAssignment.getMappingDimensions();
    LOG.info(getID() + " Initial Dimensions is: " + dim);

    // connecting with previous level
    InputDeclarer currentBolt = builder.setBolt(getID(), this, parallelism);
    if (MyUtilities.isManualBatchingMode(getConf()))
      currentBolt = MyUtilities.attachEmitterBatch(conf, _fullHashList, currentBolt,
          firstEmitter, secondEmitter);
    else
      currentBolt = MyUtilities.attachEmitterHash(conf, _fullHashList, currentBolt,
          firstEmitter, secondEmitter);

    // connecting with Killer
    if (getHierarchyPosition() == FINAL_COMPONENT && (!MyUtilities.isAckEveryTuple(conf)))
      killer.registerComponent(this, parallelism);
    if (cp.getPrintOut() && _operatorChain.isBlocking())
      currentBolt.allGrouping(killer.getID(), SystemParameters.DUMP_RESULTS_STREAM);


    if (_joinPredicate != null) {
      createIndexes();
      _existIndexes = true;
View Full Code Here


    _secondEmitter = secondEmitter;

    _ID = componentName + "_HARM";

    final int parallelism = SystemParameters.getInt(conf, _componentName + "_PAR");
    InputDeclarer currentBolt = builder.setBolt(_ID, this, parallelism);
    currentBolt = MyUtilities.attachEmitterHash(_conf, null, currentBolt, _firstEmitter,
        _secondEmitter);
  }
View Full Code Here

    final int secondCardinality = SystemParameters.getInt(conf, secondEmitter.getName()
        + "_CARD");
    final int parallelism = SystemParameters.getInt(conf, getID() + "_PAR");
    _operatorChain = cp.getChainOperator();
    _joinPredicate = joinPredicate;
    InputDeclarer currentBolt = builder.setBolt(getID(), this, parallelism);
   
    final MatrixAssignment _currentMappingAssignment;
     _currentMappingAssignment = new EquiMatrixAssignment(
        firstCardinality, secondCardinality, parallelism, -1);
   
    final String dim = _currentMappingAssignment.toString();
    LOG.info(getID() + " Initial Dimensions is: " + dim);
   
    if (interComp == null)
      currentBolt = MyUtilities.thetaAttachEmitterComponents(currentBolt, firstEmitter,
          secondEmitter, allCompNames, _currentMappingAssignment, conf,wrapper);
    else {
      currentBolt = MyUtilities.thetaAttachEmitterComponentsWithInterChanging(currentBolt,
          firstEmitter, secondEmitter, allCompNames, _currentMappingAssignment, conf,
          interComp);
      _inter = interComp;
    }
    if (getHierarchyPosition() == FINAL_COMPONENT && (!MyUtilities.isAckEveryTuple(conf)))
      killer.registerComponent(this, parallelism);
    if (cp.getPrintOut() && _operatorChain.isBlocking())
      currentBolt.allGrouping(killer.getID(), SystemParameters.DUMP_RESULTS_STREAM);
    _firstRelationStorage = new TupleStorage();
    _secondRelationStorage = new TupleStorage();
    if (_joinPredicate != null) {
      createIndexes();
      _existIndexes = true;
View Full Code Here

        firstCardinality, secondCardinality, parallelism, -1);
    final String dim = currentMappingAssignment.getMappingDimensions();
    LOG.info(getID() + " Initial Dimensions is: " + dim);

    // connecting with previous level
    InputDeclarer currentBolt = builder.setBolt(getID(), this, parallelism);
    if (MyUtilities.isManualBatchingMode(getConf()))
      currentBolt = MyUtilities.attachEmitterBatch(conf, _fullHashList, currentBolt,
          firstEmitter, secondEmitter);
    else
      currentBolt = MyUtilities.attachEmitterHash(conf, _fullHashList, currentBolt,
          firstEmitter, secondEmitter);

    // connecting with Killer
    if (getHierarchyPosition() == FINAL_COMPONENT && (!MyUtilities.isAckEveryTuple(conf)))
      killer.registerComponent(this, parallelism);
    if (cp.getPrintOut() && _operatorChain.isBlocking())
      currentBolt.allGrouping(killer.getID(), SystemParameters.DUMP_RESULTS_STREAM);


    if (_joinPredicate != null) {
      createIndexes();
      _existIndexes = true;
View Full Code Here

    // throw new RuntimeException(_componentName +
    // ": Distinct operator cannot be specified for multiThreaded bolts!");
    // }
    _operatorChain = cp.getChainOperator();

    InputDeclarer currentBolt = builder.setBolt(getID(), this, parallelism);

    _fullHashList = cp.getFullHashList();

    if (MyUtilities.isManualBatchingMode(getConf()))
      currentBolt = MyUtilities.attachEmitterBatch(conf, _fullHashList, currentBolt,
          parentEmitter);
    else
      currentBolt = MyUtilities.attachEmitterHash(conf, _fullHashList, currentBolt,
          parentEmitter);

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

    if (cp.getPrintOut() && _operatorChain.isBlocking())
      currentBolt.allGrouping(killer.getID(), SystemParameters.DUMP_RESULTS_STREAM);
  }
View Full Code Here

    _operatorChain = cp.getChainOperator();
    _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())
      currentBolt.allGrouping(killer.getID(), SystemParameters.DUMP_RESULTS_STREAM);

    _joinStorage = preAggStorage;
    _preAggProj = preAggProj;
  }
View Full Code Here

    final int secondCardinality = SystemParameters.getInt(conf, secondEmitter.getName()
        + "_CARD");
    final int parallelism = SystemParameters.getInt(conf, getID() + "_PAR");
    _operatorChain = cp.getChainOperator();
    _joinPredicate = joinPredicate;
    InputDeclarer currentBolt = builder.setBolt(getID(), this, parallelism);
    final EquiMatrixAssignment _currentMappingAssignment = new EquiMatrixAssignment(
        firstCardinality, secondCardinality, parallelism, -1);
    final String dim = _currentMappingAssignment.getMappingDimensions();
    LOG.info(getID() + " Initial Dimensions is: " + dim);
    if (interComp == null)
      currentBolt = MyUtilities.thetaAttachEmitterComponents(currentBolt, firstEmitter,
          secondEmitter, allCompNames, _currentMappingAssignment, conf,((ComparisonPredicate)joinPredicate).getwrapper());
    else {
      currentBolt = MyUtilities.thetaAttachEmitterComponentsWithInterChanging(currentBolt,
          firstEmitter, secondEmitter, allCompNames, _currentMappingAssignment, conf,
          interComp);
      _inter = interComp;
    }
    if (getHierarchyPosition() == FINAL_COMPONENT && (!MyUtilities.isAckEveryTuple(conf)))
      killer.registerComponent(this, parallelism);
    if (cp.getPrintOut() && _operatorChain.isBlocking())
      currentBolt.allGrouping(killer.getID(), SystemParameters.DUMP_RESULTS_STREAM);
    LOG.info("Storage with BDB!");
  }
View Full Code Here

    _hashExpressions = cp.getHashExpressions();
    _joinPredicate = joinPredicate;

    _hierarchyPosition = hierarchyPosition;

    InputDeclarer currentBolt = builder.setBolt(_ID, this, parallelism);

    final EquiMatrixAssignment _currentMappingAssignment = new EquiMatrixAssignment(
        firstCardinality, secondCardinality, parallelism, -1);
    final String dim = _currentMappingAssignment.getMappingDimensions();
    LOG.info(_ID + " Initial Dimensions is: " + dim);

    currentBolt = MyUtilities.attachEmitterHash(conf, null, currentBolt, firstEmitter,
        secondEmitter);

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

    _printOut = cp.getPrintOut();
    if (_printOut && _operatorChain.isBlocking())
      currentBolt.allGrouping(killer.getID(), SystemParameters.DUMP_RESULTS_STREAM);

    if (_joinPredicate != null)
      _existIndexes = true;
    else
      _existIndexes = false;
View Full Code Here

    _statsUtils = new StatisticsUtilities(getConf(), LOG);

    final int parallelism = SystemParameters.getInt(getConf(), getID() + "_PAR");

    // connecting with previous level
    InputDeclarer currentBolt = builder.setBolt(getID(), this, parallelism);
    if (MyUtilities.isManualBatchingMode(getConf()))
      currentBolt = MyUtilities.attachEmitterBatch(conf, _fullHashList, currentBolt,
          firstEmitter, secondEmitter);
    else
      currentBolt = MyUtilities.attachEmitterHash(conf, _fullHashList, currentBolt,
          firstEmitter, secondEmitter);

    // connecting with Killer
    if (getHierarchyPosition() == FINAL_COMPONENT && (!MyUtilities.isAckEveryTuple(conf)))
      killer.registerComponent(this, parallelism);
    if (cp.getPrintOut() && _operatorChain.isBlocking())
      currentBolt.allGrouping(killer.getID(), SystemParameters.DUMP_RESULTS_STREAM);
  }
View Full Code Here

TOP

Related Classes of backtype.storm.topology.InputDeclarer

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.