carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravipesala <...@git.apache.org>
Subject [GitHub] carbondata pull request #1377: [CARBONDATA-1504] Fixed refresh of segments i...
Date Thu, 28 Sep 2017 05:20:26 GMT
Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1377#discussion_r141528126
  
    --- Diff: core/src/main/java/org/apache/carbondata/core/datamap/DataMapStoreManager.java
---
    @@ -151,4 +158,61 @@ public static DataMapStoreManager getInstance() {
         return instance;
       }
     
    +  public TableSegmentRefresher getTableSegmentRefresher(AbsoluteTableIdentifier identifier)
{
    +    String uniqueName = identifier.uniqueName();
    +    if (segmentRefreshMap.get(uniqueName) == null) {
    +      segmentRefreshMap.put(uniqueName, new TableSegmentRefresher(identifier));
    +    }
    +    return segmentRefreshMap.get(uniqueName);
    +  }
    +
    +  /**
    +   * Keep track of the segment refresh time.
    +   */
    +  public static class TableSegmentRefresher {
    +
    +    private Map<String, Long> segmentRefreshTime = new HashMap<>();
    --- End diff --
    
    ok


---

Mime
View raw message