A Framework for Programming Data Elasticity in Cloud