org.apache.solr.search.grouping.endresulttransformer
Interface EndResultTransformer

All Known Implementing Classes:
GroupedEndResultTransformer, MainEndResultTransformer, SimpleEndResultTransformer

public interface EndResultTransformer

Responsible for transforming the grouped result into the final format for displaying purposes.

WARNING: This API is experimental and might change in incompatible ways in the next release.

Nested Class Summary
static interface EndResultTransformer.SolrDocumentSource
          Abstracts the source for SolrDocument instances.
 
Method Summary
 void transform(Map<String,?> result, SolrQueryResponse response, GroupingSpecification groupingSpecification, EndResultTransformer.SolrDocumentSource solrDocumentSource)
          Transforms the specified result into its final form and puts it into the specified response.
 

Method Detail

transform

void transform(Map<String,?> result,
               SolrQueryResponse response,
               GroupingSpecification groupingSpecification,
               EndResultTransformer.SolrDocumentSource solrDocumentSource)
Transforms the specified result into its final form and puts it into the specified response.

Parameters:
result - The map containing the grouping result (for grouping by field and query)
response - The response that will be rendered to the client
groupingSpecification - The grouping specification
solrDocumentSource - The source of SolrDocument instances


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.