carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackylk <...@git.apache.org>
Subject [GitHub] carbondata pull request #1099: [CARBONDATA-1232] Datamap implementation for ...
Date Mon, 10 Jul 2017 13:43:09 GMT
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1099#discussion_r126424329
  
    --- Diff: core/src/main/java/org/apache/carbondata/core/indexstore/DataMapFactory.java
---
    @@ -0,0 +1,127 @@
    +/*
    + * 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.carbondata.core.indexstore;
    +
    +import java.util.List;
    +
    +import org.apache.carbondata.core.events.ChangeEvent;
    +import org.apache.carbondata.core.indexstore.schema.FilterType;
    +import org.apache.carbondata.core.metadata.AbsoluteTableIdentifier;
    +import org.apache.carbondata.core.scan.filter.resolver.FilterResolverIntf;
    +
    +/**
    + * Interface for datamap factory, it is responsible for creating the datamap.
    + */
    +public interface DataMapFactory {
    +
    +  /**
    +   * Initialization of Datamap factory
    +   * @param identifier
    +   * @param dataMapName
    +   */
    +  void init(AbsoluteTableIdentifier identifier, String dataMapName);
    +  /**
    +   * Get the datamap writer for each segmentid.
    +   *
    +   * @param identifier
    +   * @param segmentId
    +   * @return
    +   */
    +  DataMapWriter getDataMapWriter(AbsoluteTableIdentifier identifier,
    +      String segmentId);
    +
    +  /**
    +   * Get the datamap for segmentid
    +   *
    +   * @param segmentId
    +   * @return
    +   */
    +  List<DataMap> getDataMaps(String segmentId);
    +
    +  /**
    +   * Get datamap for distributable object.
    +   *
    +   * @param distributable
    +   * @return
    +   */
    +  DataMap getDataMap(DataMapDistributable distributable);
    +
    +  /**
    +   * This method checks whether the columns and the type of filters supported
    +   * for this datamap or not
    +   *
    +   * @param filterType
    +   * @return
    +   */
    +  boolean isFiltersSupported(FilterType filterType);
    +
    +  /**
    +   *
    +   * @param event
    +   */
    +  void fireEvent(ChangeEvent event);
    +
    +  /**
    +   * Clears datamap of the segment
    +   */
    +  void clear(String segmentId);
    +
    +  /**
    +   * Clear all datamaps from memory
    +   */
    +  void clear();
    +
    +  /**
    +   * Manages the the data of one datamap
    +   */
    +  interface DataMap {
    --- End diff --
    
    please separate the factory and datamap interface


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message