class VitamMongoRepository implements VitamRepository {

    @Override
    public FindIterable<Document> findByFieldsDocuments(Map<String, String> fields, int mongoBatchSize,
        Integer tenant) {
        ParametersChecker.checkParameter(ALL_PARAMS_REQUIRED, tenant);
        if (fields == null || fields.isEmpty()) {
            return findDocuments(mongoBatchSize, tenant);
        }
        BasicDBObject filter = new BasicDBObject();
        fields.forEach((key, value) -> filter.append(key, value));
        filter.put(VitamDocument.TENANT_ID, tenant);
        return collection.find(filter).batchSize(mongoBatchSize);
    }

    public  VitamMongoRepository(MongoCollection<Document> collection);

}