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

Public Member Functions

 HeavyDBView (String view_sql, TTableDetails ri, HeavyDBParser mp)
 
String toString ()
 
SqlIdentifierCapturer getAccessedObjects ()
 
Schema.TableType getJdbcTableType ()
 
RelNode toRel (RelOptTable.ToRelContext context, RelOptTable relOptTable)
 
RelDataType getRowType (RelDataTypeFactory rdtf)
 
- Public Member Functions inherited from com.mapd.calcite.parser.HeavyDBTable
long getVersion ()
 
 HeavyDBTable (TTableDetails ri)
 
RelDataType getRowType (RelDataTypeFactory rdtf)
 
Statistic getStatistic ()
 
Schema.TableType getJdbcTableType ()
 
boolean isRolledUp (String string)
 
boolean rolledUpColumnValidInsideAgg (String string, SqlCall sc, SqlNode sn, CalciteConnectionConfig ccc)
 
boolean isSystemColumn (final String columnName)
 

Package Functions

String getViewSql ()
 

Static Package Attributes

static final Logger HEAVYDBLOGGER = LoggerFactory.getLogger(HeavyDBView.class)
 
- Static Package Attributes inherited from com.mapd.calcite.parser.HeavyDBTable
static final Logger HEAVYDBLOGGER = LoggerFactory.getLogger(HeavyDBTable.class)
 

Private Attributes

final String viewSql
 
SqlIdentifierCapturer accessObjects
 
RelRoot viewRelRoot
 

Detailed Description

Definition at line 41 of file HeavyDBView.java.

Constructor & Destructor Documentation

com.mapd.calcite.parser.HeavyDBView.HeavyDBView ( String  view_sql,
TTableDetails  ri,
HeavyDBParser  mp 
)
inline

Definition at line 47 of file HeavyDBView.java.

References com.mapd.calcite.parser.HeavyDBView.accessObjects, com.mapd.calcite.parser.HeavyDBView.viewRelRoot, and com.mapd.calcite.parser.HeavyDBView.viewSql.

47  {
48  super(ri);
49  this.viewSql = view_sql;
50  try {
51  HeavyDBParserOptions parserOptions = new HeavyDBParserOptions();
52  viewRelRoot = mp.queryToRelNode(viewSql, parserOptions);
53  accessObjects = mp.captureIdentifiers(viewSql, parserOptions.isLegacySyntax());
54  } catch (SqlParseException e) {
55  HEAVYDBLOGGER.error("error parsing view SQL: " + view_sql, e);
56  } catch (ValidationException ex) {
57  HEAVYDBLOGGER.error("error validating view SQL: " + view_sql, ex);
58  } catch (RelConversionException ex) {
59  HEAVYDBLOGGER.error("error doing Rel Conversion view SQL: " + view_sql, ex);
60  }
61  }
SqlIdentifierCapturer accessObjects

Member Function Documentation

SqlIdentifierCapturer com.mapd.calcite.parser.HeavyDBView.getAccessedObjects ( )
inline

Definition at line 68 of file HeavyDBView.java.

References com.mapd.calcite.parser.HeavyDBView.accessObjects.

Referenced by com.mapd.calcite.parser.HeavyDBParser.resolveSelectIdentifiers().

68  {
69  return accessObjects;
70  }
SqlIdentifierCapturer accessObjects

+ Here is the caller graph for this function:

Schema.TableType com.mapd.calcite.parser.HeavyDBView.getJdbcTableType ( )
inline

Definition at line 77 of file HeavyDBView.java.

77  {
78  return Schema.TableType.VIEW;
79  }
RelDataType com.mapd.calcite.parser.HeavyDBView.getRowType ( RelDataTypeFactory  rdtf)
inline

Definition at line 87 of file HeavyDBView.java.

87  {
88  return viewRelRoot.validatedRowType;
89  }
String com.mapd.calcite.parser.HeavyDBView.getViewSql ( )
inlinepackage

Definition at line 72 of file HeavyDBView.java.

References com.mapd.calcite.parser.HeavyDBView.viewSql.

72  {
73  return viewSql;
74  }
RelNode com.mapd.calcite.parser.HeavyDBView.toRel ( RelOptTable.ToRelContext  context,
RelOptTable  relOptTable 
)
inline

Definition at line 82 of file HeavyDBView.java.

82  {
83  return viewRelRoot.rel;
84  }
String com.mapd.calcite.parser.HeavyDBView.toString ( )
inline

Definition at line 63 of file HeavyDBView.java.

References com.mapd.calcite.parser.HeavyDBView.accessObjects, and com.mapd.calcite.parser.HeavyDBView.viewSql.

63  {
64  return "View SQL: " + viewSql + "\n"
65  + "Accessed Objects\n" + accessObjects;
66  }
SqlIdentifierCapturer accessObjects

Member Data Documentation

final Logger com.mapd.calcite.parser.HeavyDBView.HEAVYDBLOGGER = LoggerFactory.getLogger(HeavyDBView.class)
staticpackage

Definition at line 42 of file HeavyDBView.java.

RelRoot com.mapd.calcite.parser.HeavyDBView.viewRelRoot
private

Definition at line 45 of file HeavyDBView.java.

Referenced by com.mapd.calcite.parser.HeavyDBView.HeavyDBView().

final String com.mapd.calcite.parser.HeavyDBView.viewSql
private

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