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

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


    }

    private void testSerializingSlicedFacet(final ExtTLongObjectHashMap<TObjectIntHashMap<BytesRef>> counts) throws Exception {
        final ExtTLongObjectHashMap<TObjectIntHashMap<BytesRef>> sentCounts =
                deepCopySliced(counts);
        final InternalSlicedFacet toSend = new InternalSlicedFacet("qux", sentCounts);
        final InternalSlicedFacet toReceive = new InternalSlicedFacet();
        serializeAndDeserialize(toSend, toReceive);
        final ExtTLongObjectHashMap<TObjectIntHashMap<BytesRef>> receivedCounts =
                new ExtTLongObjectHashMap<TObjectIntHashMap<BytesRef>>(toReceive.peekCounts());
        // Check against original counts as sentCounts may have been recycled
        compareSlicedCounts(counts, receivedCounts);
    }
View Full Code Here


        _sliceFieldValues = null;
    }

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

TOP

Related Classes of com.pearson.entech.elasticsearch.search.facet.approx.date.internal.InternalSlicedFacet$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.