This Java library provides a basic implementation of the java.util.Comparator interface for delimited flat file records.
The compare method assumes String arguments which are tokenized. These tokens represent the individual columns that are to be sorted based on rules that are injected prior to execution.
The data structure of the file is also defined prior to execution.
This implementation sorts the following column data types:
- java.lang.String
- java.Math.BigInteger
- java.Math.BigDecimal
- org.joda.time.DateTime
Columns are sorted based on specified attributes, some of which are type specific. For example:
- Treat Null as Low Sort Order (boolean)
- Ascending Order (boolean)
- DateTime Pattern (String)
- BigDecimal Scale (integer)
... and others
Multi-Column Row Comparator
Provides multi-column sort capabilities for row-based text file data
Brought to you by:
derecas
Downloads:
0 This Week