Search in sources :

Example 1 with PartitionPersistProcessor

use of org.apache.storm.trident.planner.processor.PartitionPersistProcessor in project storm by apache.

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(org.apache.storm.trident.planner.processor.PartitionPersistProcessor) ProcessorNode(org.apache.storm.trident.planner.ProcessorNode) NodeStateInfo(org.apache.storm.trident.planner.NodeStateInfo)

Aggregations

NodeStateInfo (org.apache.storm.trident.planner.NodeStateInfo)1 ProcessorNode (org.apache.storm.trident.planner.ProcessorNode)1 PartitionPersistProcessor (org.apache.storm.trident.planner.processor.PartitionPersistProcessor)1