public class CollectionDocumentCreator extends Object implements DocumentListCreator<Collection<Document>>
| Constructor and Description |
|---|
CollectionDocumentCreator() |
| Modifier and Type | Method and Description |
|---|---|
List<Document> |
getDocument(String type,
Collection<Document> data,
Object... arguments)
将数据转换成索引文档列表
|
boolean |
isMatch(Collection<Document> data)
判断本批量文档生成器能否处理此数据
|
public boolean isMatch(Collection<Document> data)
DocumentListCreatorisMatch in interface DocumentListCreator<Collection<Document>>public List<Document> getDocument(String type, Collection<Document> data, Object... arguments)
DocumentListCreatorgetDocument in interface DocumentListCreator<Collection<Document>>Copyright © 2006–2018 TinyGroup. All rights reserved.