private int calculateMaxLevels(long t) {
        int maxLevels = 1;
        while ((t /= this.arity) != 0) {
            maxLevels++;
        }
        return maxLevels;
    }
@param arity      The arity used to index the predicates
@param lowerBound The minimum value used by any range predicate in the system
@param upperBound The maximum value used by any range predicate in the system
predicate-search/src/main/java/com/yahoo/search/predicate/index/PredicateRangeTermExpander.java