Skip to content

Commit

Permalink
docs: synced via GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nop-cao committed Dec 19, 2024
1 parent 6610821 commit c4d0cd1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/dev-guide/batch/batch-task.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
* executor: 使用哪个线程池来执行任务,默认使用全局的nop-cached-thread-pool。executor的名称对应于GlobalWorkers中注册的线程池或者BeanContainer管理的某个Executor。
* 每个批处理任务包含一个loader, 多个processor,以及多个consumer。processor和consumer都是可选配置。

### CSV文件读写
如果file-reader不配置fileModelPath,则缺省情况下会按照csv格式进行读写。

* csvFormat 配置csv文件的格式,默认为DEFAULT。具体可用格式参见CSVFormat类。
* headers 用于指定解析得到的字段名。缺省情况下使用文件第一行读取的Headers。如果指定,则会忽略第一行指定的Header,以这里指定的header为准。
* headerLabels 如果指定了headerLabels,则只有匹配了headerLabels的列才会被保留,否则会被忽略。忽略列时会打印日志`nop.csv.ignore-header:header={}, allowed={}`


## 分区处理

如果配置了loader的dispatcher,则会使用PartitionDispatchLoaderProvider来实现分区加载。
Expand Down
11 changes: 11 additions & 0 deletions src/faq/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,17 @@ public class MyResponseBean{

另外也可以返回`List<MyEntity>`这种结构。GraphQL识别对象类型和对象列表类型。

### 39. NopGraphQL使用自定义的泛型类`MyPageBean<T>` 返回数据为什么会报错?
对于自定义的数据类型,目前NopGraphQL不支持泛型,所以需要写一个派生类返回。NopGraphQL需要为每一个类型生成一个泛型类型,对于PageBean, ApiResponse等是有特殊处理。

```
public MyUserPageBean findAll(){
...
}
class MyUserPageBean extends MyPageBean<User>{}
```

## 部署问题

## 设计问题
Expand Down
Binary file modified src/ppt/theory-of-reversible-computation.pptx
Binary file not shown.

0 comments on commit c4d0cd1

Please sign in to comment.