class MultiRecordKey extends AbstractKey {

    @Override
    public int compareTo(AbstractKey key)
    {
        int c = super.compareTo(key);
        if (c == 0) {
            MultiRecordKey that = (MultiRecordKey) key;
            if (this.hi != null && that.lo != null && this.hi.compareTo(that.lo) <= 0) {
                c = -1;
            } else if (this.lo != null && that.hi != null && this.lo.compareTo(that.hi) >= 0) {
                c = 1;
            }
        }
        return c;
    }

    public  MultiRecordKey(AbstractKey lo, AbstractKey hi);

}