forked from Mirrors/privacore-open-source-search-engine
Added ovlerloads to Spiderdb::makeFirstKey/makeLastKey() so urlHash28 can be specified
This commit is contained in:
6
Spider.h
6
Spider.h
@ -400,10 +400,16 @@ public:
|
||||
static key128_t makeFirstKey( int32_t firstIp ) {
|
||||
return makeKey( firstIp, 0LL, false, 0LL, true );
|
||||
}
|
||||
static key128_t makeFirstKey( int32_t firstIp, int64_t urlHash48) {
|
||||
return makeKey(firstIp, urlHash48, false, 0LL, true);
|
||||
}
|
||||
|
||||
static key128_t makeLastKey( int32_t firstIp ) {
|
||||
return makeKey( firstIp, 0xffffffffffffLL, true, MAX_DOCID, false );
|
||||
}
|
||||
static key128_t makeLastKey( int32_t firstIp, int64_t urlHash48) {
|
||||
return makeKey( firstIp, urlHash48, true, MAX_DOCID, false );
|
||||
}
|
||||
|
||||
// print the spider rec
|
||||
static int32_t print(const char *srec, SafeBuf *sb = NULL);
|
||||
|
Reference in New Issue
Block a user