Mercurial > dive4elements > river
comparison etl/src/main/java/org/dive4elements/river/etl/aft/DIPSGauge.java @ 8761:cb6514faf0d9
Made ETL process more tolerant for dates in SGM/DIPS gauges. Upgrade to ojdbc6.jar.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Tue, 11 Aug 2015 12:17:42 +0200 |
parents | 6f80d5f375fd |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8760:9483a5bf4219 | 8761:cb6514faf0d9 |
---|---|
26 public class DIPSGauge | 26 public class DIPSGauge |
27 { | 27 { |
28 private static Logger log = Logger.getLogger(DIPSGauge.class); | 28 private static Logger log = Logger.getLogger(DIPSGauge.class); |
29 | 29 |
30 public static final Pattern DATE_PATTERN = Pattern.compile( | 30 public static final Pattern DATE_PATTERN = Pattern.compile( |
31 "(\\d{4})-(\\d{2})-(\\d{2})\\s+(\\d{2}):(\\d{2}):(\\d{2})"); | 31 "(\\d{4})-(\\d{2})-(\\d{2})(?:\\s+|T)(\\d{2}):(\\d{2}):(\\d{2})"); |
32 | 32 |
33 public static final Comparator<Datum> DATE_CMP = new Comparator<Datum>() { | 33 public static final Comparator<Datum> DATE_CMP = new Comparator<Datum>() { |
34 public int compare(Datum a, Datum b) { | 34 public int compare(Datum a, Datum b) { |
35 return a.date.compareTo(b.date); | 35 return a.date.compareTo(b.date); |
36 } | 36 } |