Github user Vlad-Storona commented on a diff in the pull request:

    https://github.com/apache/drill/pull/774#discussion_r148628710
  
    --- Diff: 
contrib/storage-opentsdb/src/main/java/org/apache/drill/exec/store/openTSDB/schema/OpenTSDBDatabaseSchema.java
 ---
    @@ -0,0 +1,77 @@
    +/*
    + * Licensed to the Apache Software Foundation (ASF) under one
    + * or more contributor license agreements.  See the NOTICE file
    + * distributed with this work for additional information
    + * regarding copyright ownership.  The ASF licenses this file
    + * to you under the Apache License, Version 2.0 (the
    + * "License"); you may not use this file except in compliance
    + * with the License.  You may obtain a copy of the License at
    + *
    + * http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.drill.exec.store.openTSDB.schema;
    +
    +import com.google.common.collect.Maps;
    +import com.google.common.collect.Sets;
    +import org.apache.calcite.schema.Table;
    +import org.apache.drill.exec.planner.logical.DrillTable;
    +import org.apache.drill.exec.store.AbstractSchema;
    +import org.apache.drill.exec.store.openTSDB.OpenTSDBStoragePluginConfig;
    +import 
org.apache.drill.exec.store.openTSDB.schema.OpenTSDBSchemaFactory.OpenTSDBTables;
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
    +
    +import java.util.Map;
    +import java.util.Set;
    +
    +public class OpenTSDBDatabaseSchema extends AbstractSchema {
    +
    +  private static final Logger log =
    +      LoggerFactory.getLogger(OpenTSDBDatabaseSchema.class);
    +
    +  private final OpenTSDBTables schema;
    +  private final Set<String> tableNames;
    +
    +  private final Map<String, DrillTable> drillTables = Maps.newHashMap();
    +
    +  public OpenTSDBDatabaseSchema(Set<String> tableList, OpenTSDBTables 
schema,
    +                                String name) {
    +    super(schema.getSchemaPath(), name);
    +    this.schema = schema;
    +    this.tableNames = Sets.newHashSet(tableList);
    --- End diff --
    
    I rewrited `OpenTSDBSchemaFactory`, and for that moment 
`OpenTSDBDatabaseSchema` not needed.


---

Reply via email to