public Set<String> getDataSources(String statName) { final Object2LongOpenHashMap<String> stat = perDataSourceStats.get(statName); if (stat == null) { return Collections.emptySet(); } return Collections.unmodifiableSet(stat.keySet()); }
public Set<String> getTiers(final String statName) { final Object2LongOpenHashMap<String> theStat = perTierStats.get(statName); if (theStat == null) { return Collections.emptySet(); } return Collections.unmodifiableSet(theStat.keySet()); }
/** * Returns the {@link Set} of sample values (or bins) for which counts have been recorded. * * @return the set of bins */ @SuppressWarnings("unchecked") public Set<T> getKeys() { return this.freqDist.keySet(); }
@Override public Set<K> keySet() { return counts.keySet(); }
public Set<String> getTiers(final String statName) { final Object2LongOpenHashMap<String> theStat = perTierStats.get(statName); if (theStat == null) { return Collections.emptySet(); } return Collections.unmodifiableSet(theStat.keySet()); }
public Set<String> getTiers(final String statName) { final Object2LongOpenHashMap<String> theStat = perTierStats.get(statName); if (theStat == null) { return Collections.emptySet(); } return Collections.unmodifiableSet(theStat.keySet()); }
public Set<String> getDataSources(String statName) { final Object2LongOpenHashMap<String> stat = perDataSourceStats.get(statName); if (stat == null) { return Collections.emptySet(); } return Collections.unmodifiableSet(stat.keySet()); }
public void load(File file) throws IOException, ClassNotFoundException { ObjectInputStream in = new ObjectInputStream(new FileInputStream(file)); freqDist = (Object2LongOpenHashMap<T>) in.readObject(); in.close(); int samples = 0; LongIterator sampleIter = freqDist.values().iterator(); // determine total frequency while (sampleIter.hasNext()) { long count = sampleIter.next(); samples += count; } n = samples; // determine max sample for (T key : freqDist.keySet()) { Long freq = freqDist.get(key); if (freq > maxFreq) { maxFreq = freq; maxSample = key; } } }