public class SearchGroupsResultTransformer extends Object implements ShardResultTransformer<List<Command>,Map<String,Pair<Integer,Collection<SearchGroup<BytesRef>>>>>
SearchGroup into a NamedList structure and visa versa.| Constructor and Description |
|---|
SearchGroupsResultTransformer(SolrIndexSearcher searcher) |
| Modifier and Type | Method and Description |
|---|---|
NamedList |
transform(List<Command> data)
Transforms data to a
NamedList structure for serialization purposes. |
Map<String,Pair<Integer,Collection<SearchGroup<BytesRef>>>> |
transformToNative(NamedList<NamedList> shardResponse,
Sort groupSort,
Sort sortWithinGroup,
String shard)
Transforms the specified shard response into native structures.
|
public SearchGroupsResultTransformer(SolrIndexSearcher searcher)
public NamedList transform(List<Command> data) throws IOException
NamedList structure for serialization purposes.transform in interface ShardResultTransformer<List<Command>,Map<String,Pair<Integer,Collection<SearchGroup<BytesRef>>>>>data - The data to be transformedNamedList structureIOException - If I/O related errors occur during transformingpublic Map<String,Pair<Integer,Collection<SearchGroup<BytesRef>>>> transformToNative(NamedList<NamedList> shardResponse, Sort groupSort, Sort sortWithinGroup, String shard)
transformToNative in interface ShardResultTransformer<List<Command>,Map<String,Pair<Integer,Collection<SearchGroup<BytesRef>>>>>shardResponse - The shard response containing data in a NamedList structuregroupSort - The group sortsortWithinGroup - The sort inside a groupshard - The shard address where the response originated fromCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.