@Test public void testEvaluateLong() { Long i = null; ToBoolean udf = new ToBoolean(null); assertEquals(udf.evaluate(0l), false); assertEquals(udf.evaluate(1l), true); assertEquals(udf.evaluate(2l), true); assertEquals(udf.evaluate(i), null); }
public Boolean evaluate(Boolean i) { return i; }
ToBoolean extends UDF { public Boolean evaluate(Boolean i) { return i; } }
ToBoolean extends UDF { public Boolean evaluate(Boolean i) { return i; } ToBoolean(Map<String, String> config); }
ToBoolean extends UDF { public Boolean evaluate(Boolean i) { return i; } ToBoolean(Map<String, String> config); Boolean evaluate(Boolean i); Boolean evaluate(Integer i); Boolean evaluate(Long i); Boolean evaluate(Float i); Boolean evaluate(Double i); Boolean evaluate(BigDecimal i); Boolean evaluate(String i); Boolean evaluate(Time i); Boolean evaluate(Date i); Boolean evaluate(Timestamp i); }
ToBoolean extends UDF { public Boolean evaluate(Boolean i) { return i; } ToBoolean(Map<String, String> config); Boolean evaluate(Boolean i); Boolean evaluate(Integer i); Boolean evaluate(Long i); Boolean evaluate(Float i); Boolean evaluate(Double i); Boolean evaluate(BigDecimal i); Boolean evaluate(String i); Boolean evaluate(Time i); Boolean evaluate(Date i); Boolean evaluate(Timestamp i);  }