Class TopGroupsResultTransformer

    • Constructor Detail

      • TopGroupsResultTransformer

        public TopGroupsResultTransformer​(ResponseBuilder rb)
    • Method Detail

      • transformToNative

        public Map<String,​?> transformToNative​(org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList<?>> shardResponse,
                                                     org.apache.lucene.search.Sort groupSort,
                                                     org.apache.lucene.search.Sort withinGroupSort,
                                                     String shard)
        Description copied from interface: ShardResultTransformer
        Transforms the specified shard response into native structures.
        Specified by:
        transformToNative in interface ShardResultTransformer<List<Command<?>>,​Map<String,​?>>
        Parameters:
        shardResponse - The shard response containing data in a NamedList structure
        groupSort - The group sort
        withinGroupSort - The sort inside a group
        shard - The shard address where the response originated from
        Returns:
        native structure of the data
      • transformToNativeShardDoc

        protected org.apache.lucene.search.ScoreDoc[] transformToNativeShardDoc​(List<org.apache.solr.common.util.NamedList<Object>> documents,
                                                                                org.apache.lucene.search.Sort groupSort,
                                                                                String shard,
                                                                                IndexSchema schema)
      • serializeTopGroups

        protected org.apache.solr.common.util.NamedList<Object> serializeTopGroups​(org.apache.lucene.search.grouping.TopGroups<org.apache.lucene.util.BytesRef> data,
                                                                                   SchemaField groupField)
                                                                            throws IOException
        Throws:
        IOException