[streaming] added writeAsText and Csv