Package com.twitter.maple.tap

Examples of com.twitter.maple.tap.StdoutTap


    Api.execute(new StdoutTap(), new Subquery("?word").predicate(Playground.SENTENCE, "?sentence")
        .predicate(new Split(), "?sentence").out("?word").predicate(Option.DISTINCT, true));
  }

  public static void wordCount() {
    Api.execute(new StdoutTap(), new Subquery("?word", "?count")
        .predicate(Playground.SENTENCE, "?sentence").predicate(new Split(), "?sentence")
        .out("?word").predicate(new Count(), "?count"));
  }
View Full Code Here

TOP

Related Classes of com.twitter.maple.tap.StdoutTap

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.