public class org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction extends java.lang.Object implements org.apache.drill.exec.expr.DrillSimpleFunc
{
org.apache.drill.exec.expr.holders.VarCharHolder rawInput;
org.apache.drill.exec.expr.holders.VarCharHolder rawInput;
org.apache.drill.exec.expr.holders.Float8Holder out;
org.apache.commons.text.similarity.FuzzyScore d;
public void <init>()
{
org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction v;
v := @this: org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void setup()
{
org.apache.commons.text.similarity.FuzzyScore v;
org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction v;
java.util.Locale v;
v := @this: org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction;
v = new org.apache.commons.text.similarity.FuzzyScore;
v = <java.util.Locale: java.util.Locale ENGLISH>;
specialinvoke v.<org.apache.commons.text.similarity.FuzzyScore: void <init>(java.util.Locale)>(v);
v.<org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction: org.apache.commons.text.similarity.FuzzyScore d> = v;
return;
}
public void eval()
{
org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction v;
org.apache.drill.exec.expr.holders.VarCharHolder v, v, v, v, v, v;
java.lang.Integer v;
org.apache.drill.exec.expr.holders.Float8Holder v;
int v, v, v, v, v;
io.netty.buffer.DrillBuf v, v;
java.lang.String v, v;
org.apache.commons.text.similarity.FuzzyScore v;
v := @this: org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction;
v = v.<org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction: org.apache.drill.exec.expr.holders.VarCharHolder rawInput1>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int start>;
v = v.<org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction: org.apache.drill.exec.expr.holders.VarCharHolder rawInput1>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int end>;
v = v.<org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction: org.apache.drill.exec.expr.holders.VarCharHolder rawInput1>;
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.StringDistanceFunctions$FuzzyScoreFunction: org.apache.drill.exec.expr.holders.VarCharHolder rawInput2>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int start>;
v = v.<org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction: org.apache.drill.exec.expr.holders.VarCharHolder rawInput2>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int end>;
v = v.<org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction: org.apache.drill.exec.expr.holders.VarCharHolder rawInput2>;
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.StringDistanceFunctions$FuzzyScoreFunction: org.apache.drill.exec.expr.holders.Float8Holder out>;
v = v.<org.apache.drill.exec.udfs.StringDistanceFunctions$FuzzyScoreFunction: org.apache.commons.text.similarity.FuzzyScore d>;
v = virtualinvoke v.<org.apache.commons.text.similarity.FuzzyScore: java.lang.Integer fuzzyScore(java.lang.CharSequence,java.lang.CharSequence)>(v, v);
v = virtualinvoke v.<java.lang.Integer: int intValue()>();
v.<org.apache.drill.exec.expr.holders.Float8Holder: double value> = v;
return;
}
}