private int getCurrentValuesFromCache ( List < CounterUpdateCell > counterUpdateCells , ColumnFamilyStore cfs , ClockAndCount [ ] currentValues ) { int cacheMisses = 0 ; for ( int i = 0 ; i < counterUpdateCells . size ( ) ; i ++ ) { ClockAndCount cached = cfs . getCachedCounter ( key ( ) , counterUpdateCells . get ( i ) . name ( ) ) ; if ( cached != null ) currentValues [ i ] = cached ; else cacheMisses ++ ; } return cacheMisses ; }
Returns the count of cache misses .