MCPcopy Index your code
hub / github.com/ddf-project/DDF / sql2ddf

Method sql2ddf

core/src/main/java/io/ddf/DDF.java:406–418  ·  view source on GitHub ↗
(String sqlCommand)

Source from the content-addressed store, hash-verified

404 }
405
406 public DDF sql2ddf(String sqlCommand) throws DDFException {
407 try {
408 // sqlCommand = sqlCommand.replace("@this", this.getTableName());
409 sqlCommand = sqlCommand.replace("@this", "{1}");
410 sqlCommand = String.format(sqlCommand, "{1}");
411 SQLDataSourceDescriptor sqlDS = new SQLDataSourceDescriptor(sqlCommand,
412 null, null,null, this.getUUID().toString());
413 return this.getManager().sql2ddf(sqlCommand, null, sqlDS);
414 // return this.getManager().sql2ddf(sqlCommand);
415 } catch (Exception e) {
416 throw new DDFException(String.format("Error executing queries for ddf %s", this.getTableName()), e);
417 }
418 }
419
420 // ///// Aggregate operations
421

Callers 1

testDateParseNonISOMethod · 0.95

Calls 5

getUUIDMethod · 0.95
getManagerMethod · 0.95
getTableNameMethod · 0.95
sql2ddfMethod · 0.65
toStringMethod · 0.45

Tested by 1

testDateParseNonISOMethod · 0.76