@Test public void testAggregate() throws Exception { IckleConversionVisitor v = helpExecute("select count(*) from model.G1", "SELECT COUNT(*) FROM pm1.G1 g1_0"); assertEquals(v.getProjectedDocumentAttributes().size(), 1); v = helpExecute("select sum(e1) from model.G1", "SELECT SUM(g1_0.e1) FROM pm1.G1 g1_0"); assertEquals(v.getProjectedDocumentAttributes().size(), 1); v = helpExecute("select min(e1) from model.G1", "SELECT MIN(g1_0.e1) FROM pm1.G1 g1_0"); assertEquals(v.getProjectedDocumentAttributes().size(), 1); }
public Map<String, Class<?>> getProjectedDocumentAttributes() throws TranslatorException { return projectedDocumentAttributes; }
IckleConversionVisitor extends SQLStringVisitor { public Map<String, Class<?>> getProjectedDocumentAttributes() throws TranslatorException { return projectedDocumentAttributes; } }
IckleConversionVisitor extends SQLStringVisitor { public Map<String, Class<?>> getProjectedDocumentAttributes() throws TranslatorException { return projectedDocumentAttributes; } IckleConversionVisitor(RuntimeMetadata metadata, boolean includePK); }
IckleConversionVisitor extends SQLStringVisitor { public Map<String, Class<?>> getProjectedDocumentAttributes() throws TranslatorException { return projectedDocumentAttributes; } IckleConversionVisitor(RuntimeMetadata metadata, boolean includePK); Table getParentTable(); NamedTable getParentNamedTable(); Table getQueryTable(); NamedTable getQueryNamedTable(); boolean isNestedOperation(); @Override void visit(NamedTable obj); boolean isPartOfPrimaryKey(String columnName); @Override void visit(Join obj); @Override void visit(Limit obj); @Override void visit(Select obj); @Override void visit(Comparison obj); @Override void visit(ColumnReference obj); @Override void visit(DerivedColumn obj); String getQuery(); Integer getRowLimit(); Integer getRowOffset(); Map<String, Class<?>> getProjectedDocumentAttributes(); }
IckleConversionVisitor extends SQLStringVisitor { public Map<String, Class<?>> getProjectedDocumentAttributes() throws TranslatorException { return projectedDocumentAttributes; } IckleConversionVisitor(RuntimeMetadata metadata, boolean includePK); Table getParentTable(); NamedTable getParentNamedTable(); Table getQueryTable(); NamedTable getQueryNamedTable(); boolean isNestedOperation(); @Override void visit(NamedTable obj); boolean isPartOfPrimaryKey(String columnName); @Override void visit(Join obj); @Override void visit(Limit obj); @Override void visit(Select obj); @Override void visit(Comparison obj); @Override void visit(ColumnReference obj); @Override void visit(DerivedColumn obj); String getQuery(); Integer getRowLimit(); Integer getRowOffset(); Map<String, Class<?>> getProjectedDocumentAttributes();  }