本文整理汇总了Java中cascading.cascade.Cascade类的典型用法代码示例。如果您正苦于以下问题:Java Cascade类的具体用法?Java Cascade怎么用?Java Cascade使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Cascade类属于cascading.cascade包,在下文中一共展示了Cascade类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: recordCascade
import cascading.cascade.Cascade; //导入依赖的package包/类
@Override
public void recordCascade(Cascade cascade) {
}
示例2: Controller
import cascading.cascade.Cascade; //导入依赖的package包/类
protected Controller(Properties properties, String whichRound, String whichSource) {
this.properties = properties;
TapFactory tapFactory = new TapFactory(properties);
flowConnector = new HadoopFlowConnector(properties);
AppProps.setApplicationJarClass(
properties, Controller.class);
if (whichRound.equals("old") || whichRound.equals("both")) {
addFlow(writeDot(flowConnector.connect(new OldQuantiler(whichSource, new Fields("signature_count_0d"), new Fields("user_id"), tapFactory))));
}
if (whichRound.equals("new") || whichRound.equals("both")) {
addFlow(writeDot(flowConnector.connect(new NewQuantiler(whichSource, new Fields("signature_count_0d"), new Fields("user_id"), tapFactory))));
}
Cascade cascade = new CascadeConnector().connect(this);
cascade.complete();
}