嗨,当我更新所有数据时,我有一些具有自定义渲染的单元格,deltaRowDataMode不会处理我的 cutom 单元格渲染的更改。更新行的其他单元格已正确更新。
如何给 ag 网格提供线索以正确比较此自定义单元格
你好,我认为使用 CompletableFuture 和默认设置ForkJoinPool我可以优化任务的执行而不是经典,ExecutorService但我错过了一些东西
使用此代码执行需要 1 秒,我有 3 个工作线程:
for (int i = 0; i < 3; i++) {
final int counter = i;
listTasks.add(CompletableFuture.supplyAsync(() -> {
Thread.sleep(1000);
System.out.println("Looking up " + counter + " on thread " + Thread.currentThread().getName());
return null;
}));
}
Run Code Online (Sandbox Code Playgroud)
好吧,看起来很正常。
但是使用此代码,需要 3 秒:
for (int i = 0; i < 9; i++) {
final int counter = i;
listTasks.add(CompletableFuture.supplyAsync(() -> {
Thread.sleep(1000);
System.out.println("Looking up " + counter + " on thread " …Run Code Online (Sandbox Code Playgroud) java multithreading asynchronous work-stealing completable-future
我必须做一个批处理:
从数据库读取一些数据(每行是一个项目,这很好)
然后做一些过程来添加更多数据(更多数据总是更好;))
然后这是我的问题,我有将每个项目写入一个 xml 文件,其名称取决于项目的数据。
例如我有
ItemA (attr1=toto, attr2=foo, attr3=myNonKeyData...)=>进入 toto_foo.xml
ItemB (attr1=toto, attr2=foo, attr3=myNonKeyData...)=>进入 toto_foo .xml
ItemC (attr1=tata, attr2=foo...)=>进入 tata_foo.xml
...
我看不出如何只运行一次批处理来做到这一点。
我有太多的键和可能的输出文件来做分类器。
也许使用分区程序可能是一个好主意,即使它似乎不是为此而设计的。
ag-grid ×1
asynchronous ×1
cellrenderer ×1
java ×1
output ×1
partitioner ×1
spring-batch ×1
updates ×1
xml ×1