/** * store back all timelines of given storage to table properties * * @param timeLineKey key for the time line * @param storageTableName Storage table name * @throws HiveException */ private void alterTablePartitionCache(String timeLineKey, UpdatePeriod updatePeriod, String storageTableName) throws HiveException, LensException { Table table = getTable(storageTableName); Map<String, String> params = table.getParameters(); if (partitionTimelineCache.get(timeLineKey) != null) { for (Map.Entry<String, PartitionTimeline> entry : partitionTimelineCache.get(timeLineKey).get(updatePeriod) .entrySet()) { entry.getValue().updateTableParams(table); } params.put(getPartitionTimelineCachePresenceKey(), "true"); alterHiveTable(storageTableName, table); } }
/** * store back all timelines of given storage to table properties * * @param timeLineKey key for the time line * @param storageTableName Storage table name * @throws HiveException */ private void alterTablePartitionCache(String timeLineKey, UpdatePeriod updatePeriod, String storageTableName) throws HiveException, LensException { Table table = getTable(storageTableName); Map<String, String> params = table.getParameters(); if (partitionTimelineCache.get(timeLineKey) != null) { for (Map.Entry<String, PartitionTimeline> entry : partitionTimelineCache.get(timeLineKey).get(updatePeriod) .entrySet()) { entry.getValue().updateTableParams(table); } params.put(getPartitionTimelineCachePresenceKey(), "true"); alterHiveTable(storageTableName, table); } }