mirror of
https://github.com/netfun2000/ip2region.git
synced 2026-02-27 09:44:31 +08:00
java binding 2.8.0 with vectorIndex/file policy search support xdb size exceeds INT.max bytes
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
<groupId>org.lionsoul</groupId>
|
||||
<artifactId>ip2region</artifactId>
|
||||
<version>2.7.0</version>
|
||||
<version>2.8.0</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>ip2region</name>
|
||||
|
||||
@@ -67,7 +67,7 @@ public class SearchTest {
|
||||
}
|
||||
}
|
||||
|
||||
if (dbPath.length() < 1) {
|
||||
if (dbPath.isEmpty()) {
|
||||
System.out.print("java -jar ip2region-{version}.jar search [command options]\n");
|
||||
System.out.print("options:\n");
|
||||
System.out.print(" --db string ip2region binary xdb file path\n");
|
||||
@@ -95,7 +95,6 @@ public class SearchTest {
|
||||
long cost = TimeUnit.NANOSECONDS.toMicros((long) (System.nanoTime() - sTime));
|
||||
System.out.printf("{region: %s, ioCount: %d, took: %d μs}\n", region, searcher.getIOCount(), cost);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
System.out.printf("{err: %s, ioCount: %d}\n", e, searcher.getIOCount());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ public class Searcher {
|
||||
}
|
||||
|
||||
// empty match interception
|
||||
System.out.printf("dataLen: %d, dataPtr: %d\n", dataLen, dataPtr);
|
||||
// System.out.printf("dataLen: %d, dataPtr: %d\n", dataLen, dataPtr);
|
||||
if (dataPtr < 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user