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

org.molgenis.data.index.SearchService Maven / Gradle / Ivy

There is a newer version: 8.4.5
Show newest version
package org.molgenis.data.index;

import java.util.stream.Stream;
import org.molgenis.data.Entity;
import org.molgenis.data.Query;
import org.molgenis.data.aggregation.AggregateQuery;
import org.molgenis.data.aggregation.AggregateResult;
import org.molgenis.data.meta.model.EntityType;

public interface SearchService {
  long count(EntityType entityType);

  long count(EntityType entityType, Query q);

  Object searchOne(EntityType entityType, Query q);

  Stream search(EntityType entityType, Query q);

  AggregateResult aggregate(EntityType entityType, AggregateQuery aggregateQuery);
}