Example FlowSpecification:
public class PurchaseFlow implements Flow { {@literal @}Override public FlowSpecification configure() { return FlowSpecification.Builder.with() .setName("PurchaseFlow") .setDescription("Reads user and purchase information and stores in dataset") .withFlowlets() .add("reader", new PurchaseStreamReader()) .add("collector", new PurchaseStore()) .connect() .fromStream("purchaseStream").to("reader") .from("reader").to("collector") .build(); } }
See the Cask DAP Developer Guide and the CDAP instance example applications.
@see co.cask.cdap.api.flow.flowlet.Flowlet Flowlet
|
|