Package org.apache.tajo.datum

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


      Datum predicandValue = predicand.terminate(context.predicandContext);

      if (!(predicandValue instanceof NullDatum)) {
        context.result =
            DatumFactory.createBool(not ^ (predicandValue.greaterThanEqual(begin).asBool()
                && predicandValue.lessThanEqual(end).asBool()));
      } else {
        context.result = NullDatum.get();
      }
    }
  }
View Full Code Here


    public Datum eval(Schema schema, Tuple param) {
      Datum predicandValue = predicand.eval(schema, param);

      if (!predicandValue.isNull()) {
        return DatumFactory.createBool(not ^ (predicandValue.greaterThanEqual(begin).asBool()
                && predicandValue.lessThanEqual(end).asBool()));
      } else {
        return NullDatum.get();
      }
    }
  }
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.