Package jcascalog

Examples of jcascalog.Subquery


    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


        .predicate(Playground.SENTENCE, "?sentence").predicate(new Split(), "?sentence")
        .out("?word").predicate(new Count(), "?count"));
  }

  public static void lineCountWithFiles() {
    Api.execute(Api.hfsTextline("/tmp/myresults"), new Subquery("?count")
        .predicate(Api.hfsTextline("src/jvm/jcascalog/example"), "_")
        .predicate(new Count(), "?count"));
  }
View Full Code Here

TOP

Related Classes of jcascalog.Subquery

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.