Data Stream Processing with Resource Adaptive Computation