OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mapd.calcite.parser.HeavyDBSerializer Class Reference
+ Collaboration diagram for com.mapd.calcite.parser.HeavyDBSerializer:

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 27 of file HeavyDBSerializer.java.

Member Function Documentation

com.mapd.calcite.parser.HeavyDBSerializer.[static initializer] ( )
inlinestaticpackage
static String com.mapd.calcite.parser.HeavyDBSerializer.toJsonString ( final JsonSerializableDdl  jsonSerializableDdl)
inlinestatic

Definition at line 43 of file HeavyDBSerializer.java.

43  {
44  final DdlResponse ddlResponse = new DdlResponse();
45  ddlResponse.setPayload(jsonSerializableDdl);
46  return gson.toJson(ddlResponse);
47  }
static String com.mapd.calcite.parser.HeavyDBSerializer.toString ( final RelNode  rel)
inlinestatic

Definition at line 34 of file HeavyDBSerializer.java.

34  {
35  if (rel == null) {
36  return null;
37  }
38  final HeavyDBRelJsonWriter planWriter = new HeavyDBRelJsonWriter();
39  rel.explain(planWriter);
40  return planWriter.asString();
41  }

Member Data Documentation

final Gson com.mapd.calcite.parser.HeavyDBSerializer.gson
staticprivate

Definition at line 28 of file HeavyDBSerializer.java.


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