Package jcascalog

Source Code of jcascalog.Playground

package jcascalog;

import java.util.List;

import cascalog.Util;
import clojure.lang.Var;

/**
* Some in-memory datasets to use to play around with Cascalog. You can see the contents of the
* datasets in the src/clj/cascalog/playground.clj file.
*/
public class Playground {
  public static List AGE = getDataset("age");
  public static List GENDER = getDataset("gender");
  public static List FOLLOWS = getDataset("follows");
  public static List FULL_NAMES = getDataset("full-names");
  public static List LOCATION = getDataset("location");
  public static List INTEGER = getDataset("integer");
  public static List SENTENCE = getDataset("sentence");


  private static List getDataset(String name) {
    Var v = Util.getVar("cascalog.playground", name);
    return (List) v.deref();
  }
}
TOP

Related Classes of jcascalog.Playground

TOP
Copyright © 2018 www.massapi.com. 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.