88 |
|
|
89 |
|
|
90 |
try (Connection conn = DBConnection.getConnection() ) { |
try (Connection conn = DBConnection.getConnection() ) { |
91 |
Database db = new Database(conn, isIncremental); |
DatabaseRouteDistance db = new DatabaseRouteDistance(conn, isIncremental); |
92 |
|
|
93 |
db.prepareIncrementalSearch(); |
db.prepareIncrementalSearch(); |
94 |
|
|
177 |
|
|
178 |
|
|
179 |
|
|
180 |
} else { |
} /*else { |
181 |
/// Test |
/// Test |
182 |
/* |
|
183 |
db.resetResultTable(); |
db.resetResultTable(); |
184 |
|
|
185 |
|
|
188 |
|
|
189 |
short post = (short) 2700; |
short post = (short) 2700; |
190 |
Lookup lookup = new Lookup(post, db, threadPool); |
Lookup lookup = new Lookup(post, db, threadPool); |
191 |
lookup.doLookup();*/ |
lookup.doLookup(); |
192 |
} |
} */ |
193 |
|
|
194 |
|
|
195 |
long now = System.currentTimeMillis(); |
long now = System.currentTimeMillis(); |
204 |
logger.info("Heraf, antal fundne : " + antalFundne ); |
logger.info("Heraf, antal fundne : " + antalFundne ); |
205 |
|
|
206 |
logger.info( String.format("Fandt adresser til : %.2f %%", (antalFundne.get() *100.0)/antalIkkeDaekkede ) ); |
logger.info( String.format("Fandt adresser til : %.2f %%", (antalFundne.get() *100.0)/antalIkkeDaekkede ) ); |
|
//logger.info("Fandt adresser til : " + (antalFundne*100.0)/ikkeDaekkede.length + "%" ); |
|
|
|
|
207 |
} |
} |
208 |
} |
} |
209 |
|
|