// maximum
// values
final List<Long> minRangeList = new ArrayList<Long>();
final List<Long> maxRangeList = new ArrayList<Long>();
final LongContent zero = new LongContent(
0L);
final List<LongRange> region = new ArrayList<LongRange>(
dimensionDefinitions.length);
for (int d = 0; d < dimensionDefinitions.length; d++) {
final long normalizedMin = normalizeDimension(
dimensionDefinitions[d],
rangePerDimension[d].getMin(),
binsPerDimension[d]);
final long normalizedMax = normalizeDimension(
dimensionDefinitions[d],
rangePerDimension[d].getMax(),
binsPerDimension[d]);
minRangeList.add(normalizedMin);
maxRangeList.add(normalizedMax);
region.add(LongRange.of(
normalizedMin,
normalizedMax + 1L));
}
final long minQuadSize = getMinimumQuadSize(
minRangeList,
maxRangeList);
final RegionInspector<LongRange, LongContent> regionInspector = SimpleRegionInspector.create(
ImmutableList.of(region),
new LongContent(
minQuadSize),
Functions.<LongRange> identity(),
LongRangeHome.INSTANCE,
zero);