You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* re #2702: Renaming the field index hole to a index field gap
* Ensure date range in from beginning of day to end of day for index field
holes
* Use java.time library instead of Calendar. Added test cases for index
field hole
* For old style index markers, marking the previous day as as the boundary
because we can assume the current day is only partially indexed
Copy file name to clipboardExpand all lines: src/main/java/datawave/query/model/IndexFieldHole.java
+40-7Lines changed: 40 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
packagedatawave.query.model;
2
2
3
+
importjava.time.Instant;
4
+
importjava.time.temporal.ChronoUnit;
3
5
importjava.util.Collection;
4
6
importjava.util.Comparator;
5
7
importjava.util.Date;
@@ -16,21 +18,52 @@
16
18
* This class represents a set of calculated field index holes for a given fieldName and datatype. A field index hole is effectively a date where a frequency
17
19
* row was seen, but an index and/or reversed indexed row was not.
* Returns the set of date ranges that span over field index holes for the fieldName and datatype of this {@link FieldIndexHole}. Each date range represents
86
+
* Returns the set of date ranges that span over field index holes for the fieldName and datatype of this {@link IndexFieldHole}. Each date range represents
54
87
* a span of consecutive days for which a frequency row exist, but an index row does not. All date ranges are start(inclusive)-end(inclusive).
55
88
*
56
89
* @return the date ranges
@@ -67,7 +100,7 @@ public boolean equals(Object o) {
0 commit comments