mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
#589 - ElasticSearch - Add copyIndex() via Query, Add findEachWhile()
This commit is contained in:
1 parent
5c0fb7c8cd
commit
f2ffbb2c5b
3 files changed
+67
-8
No files matched your search
@@ -5,6 +5,7 @@ import com.avaje.ebean.DocumentStore;
|
||||
import com.avaje.ebean.PagedList;
|
||||
import com.avaje.ebean.Query;
|
||||
import com.avaje.ebean.QueryEachConsumer;
|
||||
import com.avaje.ebean.QueryEachWhileConsumer;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -25,7 +26,7 @@ public class NoneDocStore implements DocumentStore {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void createIndex(String indexName, String alias, String mappingResource) {
|
||||
public void createIndex(String indexName, String alias) {
|
||||
throw implementationNotInClassPath();
|
||||
}
|
||||
|
||||
@@ -44,6 +45,11 @@ public class NoneDocStore implements DocumentStore {
|
||||
throw implementationNotInClassPath();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long copyIndex(Query<?> query, String newIndex, int bulkBatchSize) {
|
||||
throw implementationNotInClassPath();
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> void indexByQuery(Query<T> query) {
|
||||
throw implementationNotInClassPath();
|
||||
@@ -56,7 +62,7 @@ public class NoneDocStore implements DocumentStore {
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public <T> T getById(Class<T> beanType, Object id) {
|
||||
public <T> T find(Class<T> beanType, Object id) {
|
||||
throw implementationNotInClassPath();
|
||||
}
|
||||
|
||||
@@ -75,6 +81,11 @@ public class NoneDocStore implements DocumentStore {
|
||||
throw implementationNotInClassPath();
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> void findEachWhile(Query<T> query, QueryEachWhileConsumer<T> consumer) {
|
||||
throw implementationNotInClassPath();
|
||||
}
|
||||
|
||||
@Override
|
||||
public long process(List<DocStoreQueueEntry> queueEntries) throws IOException {
|
||||
throw implementationNotInClassPath();
|
||||
|
||||
Reference in new issue
Block a user