/** * Get the TableSegmentRefresher for the table. If not existed then add one and return. */ public TableSegmentRefresher getTableSegmentRefresher(CarbonTable table) { String uniqueName = table.getAbsoluteTableIdentifier().uniqueName(); if (segmentRefreshMap.get(uniqueName) == null) { segmentRefreshMap.put(uniqueName, new TableSegmentRefresher(table)); } return segmentRefreshMap.get(uniqueName); }