Package com.pearson.entech.elasticsearch.search.facet.approx.date.internal

Examples of com.pearson.entech.elasticsearch.search.facet.approx.date.internal.InternalSlicedDistinctFacet$PeriodSerializer$SliceSerializer


        _sliceFieldValues = null;
    }

    @Override
    public InternalFacet build(final String facetName) {
        final InternalFacet facet = new InternalSlicedDistinctFacet(facetName, _counts);
        return facet;
    }
View Full Code Here


        testSerializingSlicedDistinctFacet(counts, expectedCounts, expectedCards);
    }

    private void testSerializingSlicedDistinctFacet(final ExtTLongObjectHashMap<ExtTHashMap<BytesRef, DistinctCountPayload>> counts,
            final Map<Long, Map<BytesRef, Integer>> expectedCounts, final Map<Long, Map<BytesRef, Integer>> expectedCards) throws Exception {
        final InternalSlicedDistinctFacet toSend = new InternalSlicedDistinctFacet("baz", counts);
        final InternalSlicedDistinctFacet toReceive = new InternalSlicedDistinctFacet();
        serializeAndDeserialize(toSend, toReceive);
        final ExtTLongObjectHashMap<ExtTHashMap<BytesRef, DistinctCountPayload>> receivedCounts =
                new ExtTLongObjectHashMap<ExtTHashMap<BytesRef, DistinctCountPayload>>(toReceive.peekCounts());
        // Check against original counts as sentCounts may have been recycled
        compareSlicedDistinctCounts(expectedCounts, expectedCards, receivedCounts);
    }
View Full Code Here

TOP

Related Classes of com.pearson.entech.elasticsearch.search.facet.approx.date.internal.InternalSlicedDistinctFacet$PeriodSerializer$SliceSerializer

Copyright © 2018 www.massapicom. 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.