我为连接对象创建了一个聚合规则。
一切正常,直到我尝试将withBundle设置更改为.withBundle(InMemoryBundle.class)
然后突然发生异常。
这是位于我的一个类中的代码的一部分。
onPageFinished()
没有任何应用程序包的日志:
webView.loadUrl("javascript:(function() { ... });");
仅记录.withBundle(DataStoreBundle.class):
onPageFinished()
最后登录特洛伊木马.withBundle(DataStoreBundle.class)
private static class SalaryPerDepartment {
private Double salary;
private String departmentName;
public Double getSalary() {
return salary;
}
public void setSalary(Double salary) {
this.salary = salary;
}
public String getDepartmentName() {
return departmentName;
}
public void setDepartmentName(String departmentName) {
this.departmentName = departmentName;
}
@Override
public String toString() {
return "Result{" +
"salary=" + salary +
", departmentName='" + departmentName + '\'' +
'}';
}
}
public void executeQuery(){
JoinComponent joinComponent = employeesApplication.getOrThrow(JoinComponent.class);
Join<Tuple2<Departments, Salaries>> join = employeesApplication.getOrThrow(JoinComponent.class)
.from(EmployeesManager.IDENTIFIER)
.innerJoinOn(DeptEmp.EMP_NO).equal(Employees.EMP_NO)
.where(DeptEmp.TO_DATE.equal(Date.valueOf("9999-01-01")))
.innerJoinOn(Departments.DEPT_NO).equal(DeptEmp.DEPT_NO)
.innerJoinOn(Salaries.EMP_NO).equal(Employees.EMP_NO)
.where(Salaries.TO_DATE.equal(Date.valueOf("9999-01-01")))
.build((a,b,c,d) -> Tuples.of(c,d));
AggregationCollector<Tuple2<Departments, Salaries>, ?, SalaryPerDepartment> aggregationCollector = Aggregator.builder(SalaryPerDepartment::new)
.firstOn(Tuple2.<Departments, Salaries>getter0())
.andThen(Departments.DEPT_NAME)
.key(SalaryPerDepartment::setDepartmentName)
.firstOn(Tuple2.getter1())
.andThen(Salaries.SALARY)
.average(SalaryPerDepartment::setSalary)
.build()
.createCollector();
Aggregation<SalaryPerDepartment> aggregation= join.stream().collect(aggregationCollector);
}
DB Scheme which I'm using
资料来源:https://github.com/datacharmer/test_db/tree/master/images
您知道为什么会出现此问题吗?
谢谢!