-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from liuxtq/dev-delimiter
fix(interpreter): Optimize the tree graph and fix the "load data err with \\t" issue.
- Loading branch information
Showing
5 changed files
with
238 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
v8/src/main/java/org/apache/zeppelin/iginx/util/FileUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.apache.zeppelin.iginx.util; | ||
|
||
import java.io.*; | ||
import java.nio.charset.StandardCharsets; | ||
|
||
public class FileUtil { | ||
public static void writeToFile(String content, String filePath) { | ||
try (FileOutputStream fos = new FileOutputStream(filePath); | ||
OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8); | ||
BufferedWriter writer = new BufferedWriter(osw)) { // 使用BufferedWriter提高效率 | ||
|
||
writer.write(content); | ||
} catch (IOException e) { | ||
e.printStackTrace(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.