@Preview(value="3.1") public interface RepositoryStorable extends Repository
限定符和类型 | 方法和说明 |
---|---|
default java.util.concurrent.CompletableFuture<java.lang.Void> |
asyncInsert(java.util.List<Document> documents,
java.util.function.BiConsumer<java.lang.Integer,java.lang.Integer> progressCallback)
异步插件
|
void |
delete(java.lang.String... ids)
删除
|
boolean |
exists(java.lang.String id)
是否存在
|
default void |
insert(Document... documents)
插入
|
default void |
insert(java.util.List<Document> documents)
插入
|
void |
insert(java.util.List<Document> documents,
java.util.function.BiConsumer<java.lang.Integer,java.lang.Integer> progressCallback)
插入
|
search, search
default java.util.concurrent.CompletableFuture<java.lang.Void> asyncInsert(java.util.List<Document> documents, java.util.function.BiConsumer<java.lang.Integer,java.lang.Integer> progressCallback)
documents
- 文档集progressCallback
- 进度回调void insert(java.util.List<Document> documents, java.util.function.BiConsumer<java.lang.Integer,java.lang.Integer> progressCallback) throws java.io.IOException
documents
- 文档集progressCallback
- 进度回调java.io.IOException
default void insert(java.util.List<Document> documents) throws java.io.IOException
documents
- 文档集java.io.IOException
default void insert(Document... documents) throws java.io.IOException
documents
- 文档集java.io.IOException
void delete(java.lang.String... ids) throws java.io.IOException
java.io.IOException
boolean exists(java.lang.String id) throws java.io.IOException
java.io.IOException