@Test void testGenerateAscRaw() { org.molgenis.data.Sort sort = new org.molgenis.data.Sort("string", org.molgenis.data.Sort.Direction.ASC); Sort elasticSort = sortGenerator.generateSort(sort, entityType); Sort expectedElasticSort = Sort.create(singletonList(SortOrder.create("string.raw", ASC))); assertEquals(expectedElasticSort, elasticSort); }
Sort generateSort(org.molgenis.data.Sort sort, EntityType entityType) { Stream<org.molgenis.data.Sort.Order> orderStream = stream(sort); List<SortOrder> sortOrders = orderStream.map(order -> this.toSortOrder(order, entityType)).collect(toList()); return Sort.create(sortOrders); }
SortGenerator { Sort generateSort(org.molgenis.data.Sort sort, EntityType entityType) { Stream<org.molgenis.data.Sort.Order> orderStream = stream(sort); List<SortOrder> sortOrders = orderStream.map(order -> this.toSortOrder(order, entityType)).collect(toList()); return Sort.create(sortOrders); } }
SortGenerator { Sort generateSort(org.molgenis.data.Sort sort, EntityType entityType) { Stream<org.molgenis.data.Sort.Order> orderStream = stream(sort); List<SortOrder> sortOrders = orderStream.map(order -> this.toSortOrder(order, entityType)).collect(toList()); return Sort.create(sortOrders); } SortGenerator(DocumentIdGenerator documentIdGenerator); }
SortGenerator { Sort generateSort(org.molgenis.data.Sort sort, EntityType entityType) { Stream<org.molgenis.data.Sort.Order> orderStream = stream(sort); List<SortOrder> sortOrders = orderStream.map(order -> this.toSortOrder(order, entityType)).collect(toList()); return Sort.create(sortOrders); } SortGenerator(DocumentIdGenerator documentIdGenerator);  }
SortGenerator { Sort generateSort(org.molgenis.data.Sort sort, EntityType entityType) { Stream<org.molgenis.data.Sort.Order> orderStream = stream(sort); List<SortOrder> sortOrders = orderStream.map(order -> this.toSortOrder(order, entityType)).collect(toList()); return Sort.create(sortOrders); } SortGenerator(DocumentIdGenerator documentIdGenerator);   }