public UDFExpression(List<Expression> children, PName tenantId, String functionClassName, String jarPath, ScalarFunction udfFunction) { super(children); this.tenantId = tenantId; this.functionClassName = functionClassName; this.jarPath = jarPath; if(udfFunction != null) { this.udfFunction = udfFunction; } else { constructUDFFunction(); } }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); this.tenantId = PNameFactory.newName(WritableUtils.readString(input)); this.functionClassName = WritableUtils.readString(input); String str = WritableUtils.readString(input); this.jarPath = str.length() == 0 ? null: str; constructUDFFunction(); }
public UDFExpression(List<Expression> children,PFunction functionInfo) { super(children); this.tenantId = functionInfo.getTenantId() == null ? PName.EMPTY_NAME : functionInfo.getTenantId(); this.functionClassName = functionInfo.getClassName(); this.jarPath = functionInfo.getJarPath(); constructUDFFunction(); }
public UDFExpression(List<Expression> children, PName tenantId, String functionClassName, String jarPath, ScalarFunction udfFunction) { super(children); this.tenantId = tenantId; this.functionClassName = functionClassName; this.jarPath = jarPath; if(udfFunction != null) { this.udfFunction = udfFunction; } else { constructUDFFunction(); } }
public UDFExpression(List<Expression> children, PName tenantId, String functionClassName, String jarPath, ScalarFunction udfFunction) { super(children); this.tenantId = tenantId; this.functionClassName = functionClassName; this.jarPath = jarPath; if(udfFunction != null) { this.udfFunction = udfFunction; } else { constructUDFFunction(); } }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); this.tenantId = PNameFactory.newName(WritableUtils.readString(input)); this.functionClassName = WritableUtils.readString(input); String str = WritableUtils.readString(input); this.jarPath = str.length() == 0 ? null: str; constructUDFFunction(); }
@Override public void readFields(DataInput input) throws IOException { super.readFields(input); this.tenantId = PNameFactory.newName(WritableUtils.readString(input)); this.functionClassName = WritableUtils.readString(input); String str = WritableUtils.readString(input); this.jarPath = str.length() == 0 ? null: str; constructUDFFunction(); }
public UDFExpression(List<Expression> children,PFunction functionInfo) { super(children); this.tenantId = functionInfo.getTenantId() == null ? PName.EMPTY_NAME : functionInfo.getTenantId(); this.functionClassName = functionInfo.getClassName(); this.jarPath = functionInfo.getJarPath(); constructUDFFunction(); }
public UDFExpression(List<Expression> children,PFunction functionInfo) { super(children); this.tenantId = functionInfo.getTenantId() == null ? PName.EMPTY_NAME : functionInfo.getTenantId(); this.functionClassName = functionInfo.getClassName(); this.jarPath = functionInfo.getJarPath(); constructUDFFunction(); }