static new ThreadLocal findConceptWhere_debug_scanned; static A findConceptWhere_debug(Class c, O... params) { ret findConceptWhere(mainConcepts, c, params); } static A findConceptWhere_debug(Concepts concepts, Class c, O... params) { params = expandParams(c, params); int scanned = 0; try { // indexed if (concepts.fieldIndices != null) for (int i = 0; i < l(params); i += 2) { IFieldIndex index = concepts.getFieldIndex(c, (S) params[i]); if (index != null) { for (A x : index.getAll(params[i+1])) { ++scanned; if (checkConceptFields(x, params)) ret x; } null; } } // table scan for (A x : concepts.list(c)) if (checkConceptFields(x, params)) ret x; null; } finally { addToLongThreadLocal(findConceptWhere_debug_scanned, scanned); } } static Concept findConceptWhere_debug(Concepts concepts, S c, O... params) { int scanned = 0; try { for (Concept x : concepts.list(c)) { ++scanned; if (checkConceptFields(x, params)) ret x; } null; } finally { addToLongThreadLocal(findConceptWhere_debug_scanned, scanned); } }