OmniSciDB  3a86f6ec37
com.mapd.calcite.parser.MapDSerializer Class Reference
+ Collaboration diagram for com.mapd.calcite.parser.MapDSerializer:

Static Public Member Functions

static String toString (final RelNode rel)
static String toJsonString (final JsonSerializableDdl jsonSerializableDdl)

Static Package Functions

 [static initializer]

Static Private Attributes

static final Gson gson

Detailed Description


Definition at line 31 of file

Member Function Documentation

◆ [static initializer]()

com.mapd.calcite.parser.MapDSerializer.[static initializer] ( )

◆ toJsonString()

static String com.mapd.calcite.parser.MapDSerializer.toJsonString ( final JsonSerializableDdl  jsonSerializableDdl)

Definition at line 47 of file

References com.mapd.parser.extension.ddl.DdlResponse.setPayload().

Referenced by com.mapd.parser.extension.ddl.JsonSerializableDdl.toJsonString().

47  {
48  final DdlResponse ddlResponse = new DdlResponse();
49  ddlResponse.setPayload(jsonSerializableDdl);
50  return gson.toJson(ddlResponse);
51  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toString()

static String com.mapd.calcite.parser.MapDSerializer.toString ( final RelNode  rel)

Definition at line 38 of file

References org.apache.calcite.rel.externalize.MapDRelJsonWriter.asString().

Referenced by com.mapd.calcite.planner.tester.main(), com.mapd.calcite.parser.MapDParser.optimizeRAQuery(), and com.mapd.calcite.parser.MapDParser.processSql().

38  {
39  if (rel == null) {
40  return null;
41  }
42  final MapDRelJsonWriter planWriter = new MapDRelJsonWriter();
43  rel.explain(planWriter);
44  return planWriter.asString();
45  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ gson

final Gson com.mapd.calcite.parser.MapDSerializer.gson

Definition at line 32 of file

The documentation for this class was generated from the following file: