OmniSciDB  95562058bd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

Author
michael

Definition at line 31 of file MapDSerializer.java.

Member Function Documentation

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

Definition at line 47 of file MapDSerializer.java.

47  {
48  final DdlResponse ddlResponse = new DdlResponse();
49  ddlResponse.setPayload(jsonSerializableDdl);
50  return gson.toJson(ddlResponse);
51  }
static String com.mapd.calcite.parser.MapDSerializer.toString ( final RelNode  rel)
inlinestatic

Definition at line 38 of file MapDSerializer.java.

38  {
39  if (rel == null) {
40  return null;
41  }
42  final MapDRelJsonWriter planWriter = new MapDRelJsonWriter();
43  rel.explain(planWriter);
44  return planWriter.asString();
45  }

Member Data Documentation

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

Definition at line 32 of file MapDSerializer.java.


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