org.molgenis.data.index.IndexService Maven / Gradle / Ivy
package org.molgenis.data.index;
import java.util.stream.Stream;
import org.molgenis.data.Entity;
import org.molgenis.data.Repository;
import org.molgenis.data.meta.model.EntityType;
public interface IndexService {
void createIndex(EntityType entityType);
boolean hasIndex(EntityType entityType);
void deleteIndex(EntityType entityType);
void rebuildIndex(Repository extends Entity> repository);
void refreshIndex();
void index(EntityType entityType, Entity entity);
long index(EntityType entityType, Stream extends Entity> entities);
void delete(EntityType entityType, Entity entity);
void delete(EntityType entityType, Stream extends Entity> entities);
void deleteById(EntityType entityType, Object entityId);
void deleteAll(EntityType entityType, Stream