org.molgenis.data.Repository Maven / Gradle / Ivy
package org.molgenis.data;
import static java.lang.Boolean.FALSE;
import static java.lang.Boolean.TRUE;
import static java.util.stream.Collectors.partitioningBy;
import static java.util.stream.Collectors.toSet;
import java.io.Closeable;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.function.Consumer;
import java.util.stream.Stream;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
import org.molgenis.data.QueryRule.Operator;
import org.molgenis.data.aggregation.AggregateQuery;
import org.molgenis.data.aggregation.AggregateResult;
import org.molgenis.data.meta.model.EntityType;
/**
* Repository gives access to a collection of Entity. Synonyms: EntityReader, EntitySource,
* EntityCollection
*/
public interface Repository extends Iterable, Closeable {
/**
* Checks if IDs are present in this {@link Repository}.
*
* @param ids the set of ID values to check
* @return the {@link Set} of IDs that are present in the repository
*/
default Set