use of com.emc.storageos.db.client.impl.AggregateDbIndex in project coprhd-controller by CoprHD.
the class AggregationIndexTimeUUIDMigration method removeTimeUUIDIndexedFields.
private void removeTimeUUIDIndexedFields(Class<? extends DataObject> clazz) throws Exception {
DataObjectType doType = TypeMap.getDoType(clazz);
Collection<ColumnField> fields = doType.getColumnFields();
Map<String, ColumnField> uuidFields = new HashMap<>();
for (ColumnField field : fields) {
DbIndex index = field.getIndex();
if (index != null && index instanceof AggregateDbIndex) {
uuidFields.put(field.getName(), field);
}
}
// true: ignore exception while accessing db
getInternalDbClient().resetFields(clazz, uuidFields, true);
}
Aggregations