use of com.torodb.core.exceptions.user.IndexNotFoundException in project torodb by torodb.
the class SqlTorodTransaction method getIndexInfo.
@Override
public IndexInfo getIndexInfo(String dbName, String colName, String idxName) throws IndexNotFoundException {
MetaDatabase db = getInternalTransaction().getMetaSnapshot().getMetaDatabaseByName(dbName);
if (db == null) {
throw new IndexNotFoundException(dbName, colName, idxName);
}
MetaCollection col = db.getMetaCollectionByName(colName);
if (col == null) {
throw new IndexNotFoundException(dbName, colName, idxName);
}
MetaIndex idx = col.getMetaIndexByName(idxName);
if (idx == null) {
throw new IndexNotFoundException(dbName, colName, idxName);
}
return createIndexInfo(idx);
}
Aggregations