use of com.orientechnologies.common.comparator.OCaseInsentiveComparator in project orientdb by orientechnologies.
the class OCommandExecutorSQLDropProperty method relatedIndexes.
private List<OIndex<?>> relatedIndexes(final String fieldName) {
final List<OIndex<?>> result = new ArrayList<OIndex<?>>();
final ODatabaseDocument database = getDatabase();
for (final OIndex<?> oIndex : database.getMetadata().getIndexManager().getClassIndexes(className)) {
if (OCollections.indexOf(oIndex.getDefinition().getFields(), fieldName, new OCaseInsentiveComparator()) > -1) {
result.add(oIndex);
}
}
return result;
}
Aggregations