File tree Expand file tree Collapse file tree
application/src/main/java/org/opentripplanner/model/plan/paging/cursor Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313
1414public class PageCursorFactory {
1515
16+ /**
17+ * The search-window start and end is [inclusive, exclusive], so to calculate the start of the
18+ * search-window from the last time included in the search window we need to include one extra
19+ * minute at the end.
20+ * <p>
21+ * The value is set to a minute because raptor operates in one minute increments.
22+ */
23+ private static final Duration SEARCH_WINDOW_END_EXCLUSIVITY_TIME_ADDITION = Duration .ofMinutes (1 );
24+
1625 private final SortOrder sortOrder ;
1726 private final Duration newSearchWindow ;
1827 private PageType currentPageType ;
@@ -27,17 +36,6 @@ public class PageCursorFactory {
2736 private PageCursor nextCursor = null ;
2837 private PageCursor prevCursor = null ;
2938
30- /**
31- * The search-window start and end is [inclusive, exclusive], so to calculate the start of the
32- * search-window from the last time included in the search window we need to include one extra
33- * minute at the end.
34- * <p>
35- * The value is set to 60 seconds because raptor operates in one minute increments.
36- */
37- private static final Duration SEARCH_WINDOW_END_EXCLUSIVITY_TIME_ADDITION = Duration .ofSeconds (
38- 60
39- );
40-
4139 public PageCursorFactory (SortOrder sortOrder , Duration newSearchWindow ) {
4240 this .sortOrder = sortOrder ;
4341 this .newSearchWindow = newSearchWindow ;
You can’t perform that action at this time.
0 commit comments