Exemplo n.º 1
0
 /// <summary>
 /// Loads text file with the specific column delimited using the given schema
 /// </summary>
 /// <param name="path">path to text file</param>
 /// <param name="schema">schema to use</param>
 /// <param name="delimiter">delimiter to use</param>
 /// <returns></returns>
 public DataFrame TextFile(string path, StructType schema, string delimiter = ",")
 {
     return(new DataFrame(sqlContextProxy.TextFile(path, schema, delimiter), sparkContext));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Loads text file with the specific column delimited using the given schema
 /// </summary>
 /// <param name="path">path to text file</param>
 /// <param name="schema">schema to use</param>
 /// <param name="delimiter">delimiter to use</param>
 /// <returns></returns>
 public DataFrame TextFile(string path, StructType schema, string delimiter = ",")
 {
     logger.LogInfo("Path of the text file {0}", path);
     return(new DataFrame(sqlContextProxy.TextFile(path, schema, delimiter), sparkContext));
 }