Package net.hydromatic.optiq.config

Examples of net.hydromatic.optiq.config.OptiqConnectionConfig


   */
  public
  Pair<OptiqSchema.TableEntry, MaterializationService.TileKey> getAggregate(
      RelOptPlanner planner, BitSet groupSet,
      List<Lattice.Measure> measureList) {
    final OptiqConnectionConfig config =
        planner.getContext().unwrap(OptiqConnectionConfig.class);
    if (config == null) {
      return null;
    }
    final MaterializationService service = MaterializationService.instance();
    boolean create = lattice.auto && config.createMaterializations();
    final OptiqSchema schema = starRelOptTable.unwrap(OptiqSchema.class);
    return service.defineTile(lattice, groupSet, measureList, schema, create);
  }
View Full Code Here


   */
  protected OptiqConnectionImpl(Driver driver, AvaticaFactory factory,
      String url, Properties info, OptiqRootSchema rootSchema,
      JavaTypeFactory typeFactory) {
    super(driver, factory, url, info);
    OptiqConnectionConfig cfg = new OptiqConnectionConfigImpl(info);
    this.prepareFactory = driver.prepareFactory;
    if (typeFactory != null) {
      this.typeFactory = typeFactory;
    } else {
      final RelDataTypeSystem typeSystem =
          cfg.typeSystem(RelDataTypeSystem.class, RelDataTypeSystem.DEFAULT);
      this.typeFactory = new JavaTypeFactoryImpl(typeSystem);
    }
    this.rootSchema =
        rootSchema != null ? rootSchema : OptiqSchema.createRootSchema(true);

    this.properties.put(InternalProperty.CASE_SENSITIVE, cfg.caseSensitive());
    this.properties.put(InternalProperty.UNQUOTED_CASING, cfg.unquotedCasing());
    this.properties.put(InternalProperty.QUOTED_CASING, cfg.quotedCasing());
    this.properties.put(InternalProperty.QUOTING, cfg.quoting());
  }
View Full Code Here

TOP

Related Classes of net.hydromatic.optiq.config.OptiqConnectionConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.