public class org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString extends java.lang.Object implements org.apache.drill.exec.expr.DrillSimpleFunc
{
org.apache.drill.exec.expr.holders.VarCharHolder input;
org.apache.drill.exec.expr.holders.VarCharHolder formatString;
org.apache.drill.exec.expr.holders.VarCharHolder interval;
org.apache.drill.exec.expr.holders.TimeStampHolder out;
public void <init>()
{
org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString v;
v := @this: org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void setup()
{
org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString v;
v := @this: org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString;
return;
}
public void eval()
{
java.time.ZonedDateTime v;
org.apache.drill.exec.expr.holders.VarCharHolder v, v, v, v, v, v, v, v, v;
java.time.LocalDateTime v, v;
long v;
int v, v, v, v, v, v;
io.netty.buffer.DrillBuf v, v, v;
java.lang.String v, v, v;
org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString v;
java.time.Instant v;
java.time.ZoneId v;
java.time.format.DateTimeFormatter v;
org.apache.drill.exec.expr.holders.TimeStampHolder v;
v := @this: org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString;
v = v.<org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString: org.apache.drill.exec.expr.holders.VarCharHolder input>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int start>;
v = v.<org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString: org.apache.drill.exec.expr.holders.VarCharHolder input>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int end>;
v = v.<org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString: org.apache.drill.exec.expr.holders.VarCharHolder input>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: io.netty.buffer.DrillBuf buffer>;
v = staticinvoke <org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers: java.lang.String toStringFromUTF8(int,int,io.netty.buffer.DrillBuf)>(v, v, v);
v = v.<org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString: org.apache.drill.exec.expr.holders.VarCharHolder formatString>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int start>;
v = v.<org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString: org.apache.drill.exec.expr.holders.VarCharHolder formatString>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int end>;
v = v.<org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString: org.apache.drill.exec.expr.holders.VarCharHolder formatString>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: io.netty.buffer.DrillBuf buffer>;
v = staticinvoke <org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers: java.lang.String toStringFromUTF8(int,int,io.netty.buffer.DrillBuf)>(v, v, v);
v = v.<org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString: org.apache.drill.exec.expr.holders.VarCharHolder interval>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int start>;
v = v.<org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString: org.apache.drill.exec.expr.holders.VarCharHolder interval>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int end>;
v = v.<org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString: org.apache.drill.exec.expr.holders.VarCharHolder interval>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: io.netty.buffer.DrillBuf buffer>;
v = staticinvoke <org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers: java.lang.String toStringFromUTF8(int,int,io.netty.buffer.DrillBuf)>(v, v, v);
v = staticinvoke <java.time.format.DateTimeFormatter: java.time.format.DateTimeFormatter ofPattern(java.lang.String)>(v);
v = staticinvoke <java.time.LocalDateTime: java.time.LocalDateTime parse(java.lang.CharSequence,java.time.format.DateTimeFormatter)>(v, v);
v = staticinvoke <org.apache.drill.exec.udfs.DateConversionUtils: java.time.LocalDateTime getDate(java.time.LocalDateTime,java.lang.String)>(v, v);
v = v.<org.apache.drill.exec.udfs.DateFunctions$NearestDateFunctionWithString: org.apache.drill.exec.expr.holders.TimeStampHolder out>;
v = staticinvoke <java.time.ZoneId: java.time.ZoneId of(java.lang.String)>("UTC");
v = virtualinvoke v.<java.time.LocalDateTime: java.time.ZonedDateTime atZone(java.time.ZoneId)>(v);
v = virtualinvoke v.<java.time.ZonedDateTime: java.time.Instant toInstant()>();
v = virtualinvoke v.<java.time.Instant: long toEpochMilli()>();
v.<org.apache.drill.exec.expr.holders.TimeStampHolder: long value> = v;
return;
}
}