Examples of asBool()


Examples of org.apache.tajo.datum.Datum.asBool()

  }

  @Override
  public Datum eval(Schema schema, Tuple tuple) {
    Datum datum = childEval.eval(schema, tuple);
    return !datum.isNull() ? DatumFactory.createBool(!datum.asBool()) : datum;
  }

  @Override
  public String toString() {
    return "NOT " + childEval.toString();
View Full Code Here

Examples of org.rosuda.JRI.REXP.asBool()

      boolean by[] = { true, false, false };
      re.assign("bool", by);
      System.out.println(x=re.eval("bool"));
      // asBool returns the first element of the array as RBool
      // (mostly useful for boolean arrays of the length 1). is should return true
      System.out.println("isTRUE? "+x.asBool().isTRUE());

      // now for a real dotted-pair list:
      System.out.println(x=re.eval("pairlist(a=1,b='foo',c=1:5)"));
      RList l = x.asList();
      if (l!=null) {
View Full Code Here

Examples of org.rosuda.JRI.REXP.asBool()

      boolean by[] = { true, false, false };
      re.assign("bool", by);
      System.out.println(x=re.eval("bool"));
      // asBool returns the first element of the array as RBool
      // (mostly useful for boolean arrays of the length 1). is should return true
      System.out.println("isTRUE? "+x.asBool().isTRUE());

      // now for a real dotted-pair list:
      System.out.println(x=re.eval("pairlist(a=1,b='foo',c=1:5)"));
      RList l = x.asList();
      if (l!=null) {
View Full Code Here

Examples of org.rosuda.JRI.REXP.asBool()

    }
 
    public static boolean evalBool(String evalstr) {
        REXP x = getRengine().eval(evalstr);

        if (x != null && x.asBool() != null) {
            return x.asBool().isTRUE();
       
        log.error("Error while evaling" + evalstr);
        return false;
    }
View Full Code Here

Examples of org.rosuda.JRI.REXP.asBool()

 
    public static boolean evalBool(String evalstr) {
        REXP x = getRengine().eval(evalstr);

        if (x != null && x.asBool() != null) {
            return x.asBool().isTRUE();
       
        log.error("Error while evaling" + evalstr);
        return false;
    }
View Full Code Here

Examples of org.rosuda.JRI.REXP.asBool()

      boolean by[] = { true, false, false };
      re.assign("bool", by);
      System.out.println(x=re.eval("bool"));
      // asBool returns the first element of the array as RBool
      // (mostly useful for boolean arrays of the length 1). is should return true
      System.out.println("isTRUE? "+x.asBool().isTRUE());

      // now for a real dotted-pair list:
      System.out.println(x=re.eval("pairlist(a=1,b='foo',c=1:5)"));
      RList l = x.asList();
      if (l!=null) {
View Full Code Here
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.