java.lang.Object
com.tectonica.jonix.experimental.SimpleUniqueCollector
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
a wrapper for Product with some extra information needed for sorting and filtering -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a filtered list of products, that includes - for each product-ID - only the one with the latest time-stamp (as extracted from its file name or modification-time)getUniqueProducts
(Comparator<SimpleUniqueCollector.ProductInfo> comparator) Returns a filtered list of products, where each product-ID appears oncevoid
read
(JonixRecords records)
-
Field Details
-
idTabulator
-
-
Constructor Details
-
SimpleUniqueCollector
-
-
Method Details
-
read
-
getUniqueProducts
Returns a filtered list of products, that includes - for each product-ID - only the one with the latest time-stamp (as extracted from its file name or modification-time) -
getUniqueProducts
public List<SimpleUniqueCollector.ProductInfo> getUniqueProducts(Comparator<SimpleUniqueCollector.ProductInfo> comparator) Returns a filtered list of products, where each product-ID appears once- Parameters:
comparator
- a customComparator
for ordering products with identical IDs. Among all such products, the one that compares to be the 'smallest' will be picked when the list is filtered
-