Package org.elasticsearch.search.facet.datehistogram.DateHistogramFacet

Examples of org.elasticsearch.search.facet.datehistogram.DateHistogramFacet.Entry


        FacetedDateHistogramFacet ret = new FacetedDateHistogramFacet();
        ret.name = name;
        ret.entriesAsList = new ArrayList<Entry>(ordered.size());
       
        for (MultiEntry me : ordered) {
          Entry e = new Entry(me.time);
          Facet f = me.facets.get(0);
          e.internalFacet = (InternalFacet)facetProcessors.processor(f.getType()).reduce(f.getName(), me.facets);
          ret.entriesAsList.add(e);
        }
         
View Full Code Here


        name = in.readUTF();

        int size = in.readVInt();
        entries = CacheRecycler.popLongObjectMap();
        for (int i = 0; i < size; i++) {
          Entry e = new Entry(in.readLong(),null);
         
          String internal_type = in.readUTF();
          InternalFacet facet = (InternalFacet)InternalFacet.Streams.stream(internal_type).readFacet(internal_type, in);
          e.internalFacet = facet;
            entries.put(e.time,e);
View Full Code Here

TOP

Related Classes of org.elasticsearch.search.facet.datehistogram.DateHistogramFacet.Entry

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.