Minor, but I always think these read better using == instead of !=. So like this instead:
int pkPos = table.getBucketNum() == 0 ? -1 : 0;