Examples of adjustOrPutValue()


Examples of org.elasticsearch.common.trove.map.hash.TLongLongHashMap.adjustOrPutValue()

        for (Facet facet : facets) {
            InternalCountHistogramFacet histoFacet = (InternalCountHistogramFacet) facet;
            for (TLongLongIterator it = histoFacet.counts.iterator(); it.hasNext();) {
                it.advance();
                counts.adjustOrPutValue(it.key(), it.value(), it.value());
            }
            histoFacet.releaseCache();
        }

        return new InternalCountHistogramFacet(name, comparatorType, counts, true);
View Full Code Here

Examples of org.elasticsearch.common.trove.map.hash.TShortIntHashMap.adjustOrPutValue()

        for (Facet facet : facets) {
            InternalShortTermsFacet mFacet = (InternalShortTermsFacet) facet;
            missing += mFacet.missingCount();
            total += mFacet.totalCount();
            for (ShortEntry entry : mFacet.entries) {
                aggregated.adjustOrPutValue(entry.term, entry.count(), entry.count());
            }
        }

        BoundedTreeSet<ShortEntry> ordered = new BoundedTreeSet<ShortEntry>(first.comparatorType.comparator(), first.requiredSize);
        for (TShortIntIterator it = aggregated.iterator(); it.hasNext(); ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.