@ SuppressWarnings ( "unchecked" ) private Map < Long , DataPoint > _getRowWithCache ( long timestampMs ) { int [ ] yyyymm_dd = toYYYYMM_DD ( timestampMs ) ; int yyyymmdd = yyyymm_dd [ 0 ] * 100 + yyyymm_dd [ 1 ] ; ICache cache = getCache ( ) ; String cacheKey = String . valueOf ( yyyymmdd ) ; Object temp = cache != null ? cache . get ( cacheKey ) : null ; Map < Long , DataPoint > result = ( Map < Long , DataPoint > ) ( temp instanceof Map ? temp : null ) ; if ( result == null ) { result = _getRow ( getName ( ) , yyyymm_dd [ 0 ] , yyyymm_dd [ 1 ] ) ; if ( cache != null ) { cache . set ( cacheKey , result ) ; } } return result ; }
Gets all data points of a day specified by the timestamp cache supported .