why use table.ceilingEntry(internalKey)?
XbuLee opened this issue · comments
XbuLee commented
in this method ,why use method table.ceilingEntry() instead of method table.get() ?
in my opintion ,skipListMap can not set null value, if the return value is null, then it means that the map does not have this value.
Slice slice = table.get(internalKey);
if(slice==null){
return null;
}
if(internalKey.getValueType() == ValueType.DELETION){
return LookupResult.deleted(key);
}else {
return LookupResult.ok(key, slice);
}
}