private List<String> getRequiredCounterPrefix(StatsTask statsTask) throws HiveException, MetaException { List<String> prefixs = new LinkedList<String>(); StatsWork statsWork = statsTask.getWork(); String tablePrefix = getTablePrefix(statsWork); List<Map<String, String>> partitionSpecs = getPartitionSpecs(statsWork); int maxPrefixLength = StatsFactory.getMaxPrefixLength(conf); if (partitionSpecs == null) { prefixs.add(Utilities.getHashedStatsPrefix(tablePrefix, maxPrefixLength)); } else { for (Map<String, String> partitionSpec : partitionSpecs) { String prefixWithPartition = Utilities.join(tablePrefix, Warehouse.makePartPath(partitionSpec)); prefixs.add(Utilities.getHashedStatsPrefix(prefixWithPartition, maxPrefixLength)); } } return prefixs; }
tsDesc.setMaxStatsKeyPrefixLength(StatsFactory.getMaxPrefixLength(conf));
int maxPrefixLength = StatsFactory.getMaxPrefixLength(jc);
int maxPrefixLength = StatsFactory.getMaxPrefixLength(conf);
nd.getConf().setMaxStatsKeyPrefixLength(StatsFactory.getMaxPrefixLength(hconf));