An Edge-Cloud Integrated Framework for Flexible and Dynamic Stream Analytics