@Override
public WritableRecordStore makeRecordStorage(DBIDs ids, int hints, Class<?>... dataclasses) {
if(ids instanceof DBIDRange) {
DBIDRange range = (DBIDRange) ids;
Object[][] data = new Object[range.size()][dataclasses.length];
return new ArrayRecordStore(data, new RangeIDMap(range));
}
else {
return new MapIntegerDBIDRecordStore(ids.size(), dataclasses.length);
}
}