Package com.dotcms.repackage.org.elasticsearch.search.facet.datehistogram

Examples of com.dotcms.repackage.org.elasticsearch.search.facet.datehistogram.InternalCountDateHistogramFacet


                TermsFacet.ComparatorType comparatorType = (TermsFacet.ComparatorType) getFieldValue( InternalStringTermsFacet.class, "comparatorType", facet );
                //New Instance of the wrapper for the String Facet
                internalFacet = new InternalWrapperStringTermsFacet( facet.getName(), comparatorType, requiredSize, facet.getEntries(), facet.getMissingCount(), facet.getTotalCount() );
            } else if ( internalFacet instanceof InternalCountDateHistogramFacet ) {

                InternalCountDateHistogramFacet facet = (InternalCountDateHistogramFacet) internalFacet;

                //Getting private fields values required for the proper build of the wrapper
                DateHistogramFacet.ComparatorType comparatorType = (DateHistogramFacet.ComparatorType) getFieldValue( InternalCountDateHistogramFacet.class, "comparatorType", facet );
                //New Instance of the wrapper for the Date Facet
                internalFacet = new InternalWrapperCountDateHistogramFacet( facet.getName(), comparatorType, facet.getEntries() );
            }

            internalFacets.put( key, internalFacet );
        }
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.elasticsearch.search.facet.datehistogram.InternalCountDateHistogramFacet

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.