}
public MultiDimensionalNumericData getIndexConstraints(
final NumericIndexStrategy indexStrategy ) {
if (constraintsPerTypeOfDimensionDefinition.isEmpty()) {
return new BasicNumericDataset();
}
final NumericDimensionDefinition[] dimensionDefinitions = indexStrategy.getOrderedDimensionDefinitions();
final NumericData[] dataPerDimension = new NumericData[dimensionDefinitions.length];
// all or nothing...for now
for (int d = 0; d < dimensionDefinitions.length; d++) {
final NumericData dimConstraint = constraintsPerTypeOfDimensionDefinition.get(dimensionDefinitions[d].getClass());
dataPerDimension[d] = (dimConstraint == null ? dimensionDefinitions[d].getFullRange() : dimConstraint);
}
return new BasicNumericDataset(
dataPerDimension);
}