MCPcopy Create free account
hub / github.com/apache/pig / exec

Method exec

src/org/apache/pig/builtin/ToDateISO.java:33–39  ·  view source on GitHub ↗
(Tuple input)

Source from the content-addressed store, hash-verified

31public class ToDateISO extends EvalFunc<DateTime> {
32
33 public DateTime exec(Tuple input) throws IOException {
34 if (input == null || input.size() < 1 || input.get(0) == null) {
35 return null;
36 }
37 String dtStr = DataType.toString(input.get(0));
38 return ToDate.extractDateTime(dtStr);
39 }
40
41 @Override
42 public boolean allowCompileTimeCalculation() {

Calls 4

toStringMethod · 0.95
extractDateTimeMethod · 0.95
sizeMethod · 0.65
getMethod · 0.65