Search in sources :

Example 1 with PartitionPersistProcessor

use of storm.trident.planner.processor.PartitionPersistProcessor in project jstorm by alibaba.

the class Stream method partitionPersist.

public TridentState partitionPersist(StateSpec stateSpec, Fields inputFields, StateUpdater updater, Fields functionFields) {
    projectionValidation(inputFields);
    String id = _topology.getUniqueStateId();
    ProcessorNode n = new ProcessorNode(_topology.getUniqueStreamId(), _name, functionFields, functionFields, new PartitionPersistProcessor(id, inputFields, updater));
    n.committer = true;
    n.stateInfo = new NodeStateInfo(id, stateSpec);
    return _topology.addSourcedStateNode(this, n);
}
Also used : PartitionPersistProcessor(storm.trident.planner.processor.PartitionPersistProcessor) ProcessorNode(storm.trident.planner.ProcessorNode) NodeStateInfo(storm.trident.planner.NodeStateInfo)

Example 2 with PartitionPersistProcessor

use of storm.trident.planner.processor.PartitionPersistProcessor in project storm by nathanmarz.

the class Stream method partitionPersist.

public TridentState partitionPersist(StateSpec stateSpec, Fields inputFields, StateUpdater updater, Fields functionFields) {
    projectionValidation(inputFields);
    String id = _topology.getUniqueStateId();
    ProcessorNode n = new ProcessorNode(_topology.getUniqueStreamId(), _name, functionFields, functionFields, new PartitionPersistProcessor(id, inputFields, updater));
    n.committer = true;
    n.stateInfo = new NodeStateInfo(id, stateSpec);
    return _topology.addSourcedStateNode(this, n);
}
Also used : PartitionPersistProcessor(storm.trident.planner.processor.PartitionPersistProcessor) ProcessorNode(storm.trident.planner.ProcessorNode) NodeStateInfo(storm.trident.planner.NodeStateInfo)

Aggregations

NodeStateInfo (storm.trident.planner.NodeStateInfo)2 ProcessorNode (storm.trident.planner.ProcessorNode)2 PartitionPersistProcessor (storm.trident.planner.processor.PartitionPersistProcessor)2