public class SearchGroupsResultTransformer extends Object implements ShardResultTransformer<List<Command>,Map<String,SearchGroupsFieldCommandResult>>
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,SearchGroupsFieldCommandResult> |
transformToNative(NamedList<NamedList> shardResponse,
Sort groupSort,
Sort withinGroupSort,
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,SearchGroupsFieldCommandResult>>
data
- The data to be transformedNamedList
structureIOException
- If I/O related errors occur during transformingpublic Map<String,SearchGroupsFieldCommandResult> transformToNative(NamedList<NamedList> shardResponse, Sort groupSort, Sort withinGroupSort, String shard)
transformToNative
in interface ShardResultTransformer<List<Command>,Map<String,SearchGroupsFieldCommandResult>>
shardResponse
- The shard response containing data in a NamedList
structuregroupSort
- The group sortwithinGroupSort
- The sort inside a groupshard
- The shard address where the response originated fromCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.