public override int CompareBottom(int doc) { // TODO: are there sneaky non-branch ways to compute // sign of float? float v2 = currentReaderValues[doc]; if (bottom > v2) { return 1; } else if (bottom < v2) { return - 1; } else { return 0; } }