@Test @DisplayName("convert time query to EntityFilters") void convertTimeToFilters() { EventStreamQuery query = EventStreamQuery .newBuilder() .setAfter(Timestamps.MIN_VALUE) .setBefore(Timestamps.MAX_VALUE) .build(); TargetFilters entityFilters = convert(query); assertEquals(1, entityFilters.getFilterCount()); CompositeFilter compositeFilter = entityFilters.getFilter(0); List<Filter> filters = compositeFilter.getFilterList(); assertEquals(CompositeOperator.ALL, compositeFilter.getOperator()); assertEquals(2, filters.size()); }
static TargetFilters convert(EventStreamQuery query) { TargetFilters result = new QueryToFilters(query).convert(); return result; }
QueryToFilters { static TargetFilters convert(EventStreamQuery query) { TargetFilters result = new QueryToFilters(query).convert(); return result; } }
QueryToFilters { static TargetFilters convert(EventStreamQuery query) { TargetFilters result = new QueryToFilters(query).convert(); return result; } private  QueryToFilters(EventStreamQuery query); }
QueryToFilters { static TargetFilters convert(EventStreamQuery query) { TargetFilters result = new QueryToFilters(query).convert(); return result; } private  QueryToFilters(EventStreamQuery query);  }
QueryToFilters { static TargetFilters convert(EventStreamQuery query) { TargetFilters result = new QueryToFilters(query).convert(); return result; } private  QueryToFilters(EventStreamQuery query);   }