Skip to content

Commit 96d22f5

Browse files
committed
Re-added fromString
1 parent c74d732 commit 96d22f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

exec/java-exec/src/main/java/org/apache/drill/exec/store/easy/json/loader/JsonLoaderImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ public JsonLoaderBuilder fromStream(int start, int end, DrillBuf buf) {
194194
return this;
195195
}
196196

197+
public JsonLoaderBuilder fromString(String jsonString) {
198+
this.streams = Collections.singletonList(IOUtils.toInputStream(jsonString, Charset.defaultCharset()));
199+
return this;
200+
}
201+
197202
public JsonLoaderBuilder fromStream(Iterable<InputStream> streams) {
198203
this.streams = streams;
199204
return this;

0 commit comments

Comments
 (0)