All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 repository);

  void refreshIndex();

  void index(EntityType entityType, Entity entity);

  long index(EntityType entityType, Stream entities);

  void delete(EntityType entityType, Entity entity);

  void delete(EntityType entityType, Stream entities);

  void deleteById(EntityType entityType, Object entityId);

  void deleteAll(EntityType entityType, Stream entityIds);
}