com.gisgraphy.fulltext
Class SolrUnmarshaller

java.lang.Object
  extended by com.gisgraphy.fulltext.SolrUnmarshaller

public class SolrUnmarshaller
extends Object

SolrUnmarshaller for solr Query response to a DTO

Author:
David Masclet
See Also:
SolrResponseDto

Field Summary
protected static org.slf4j.Logger logger
          The Logger
 
Constructor Summary
SolrUnmarshaller()
           
 
Method Summary
static List<com.gisgraphy.fulltext.SolrResponseDto> unmarshall(org.apache.solr.client.solrj.response.QueryResponse queryResponse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger
The Logger

Constructor Detail

SolrUnmarshaller

public SolrUnmarshaller()
Method Detail

unmarshall

public static List<com.gisgraphy.fulltext.SolrResponseDto> unmarshall(org.apache.solr.client.solrj.response.QueryResponse queryResponse)
Parameters:
queryResponse - the Solr QueryResponse we want to transform
Returns:
a list of SolrResponseDto or an empty list. never return null.


Copyright © 2012. All Rights Reserved.