com.gisgraphy.domain.geoloc.service
Interface IQueryProcessor<T extends AbstractGisQuery>

All Known Subinterfaces:
IFullTextSearchEngine, IGeolocSearchEngine, IStreetSearchEngine
All Known Implementing Classes:
FullTextSearchEngine, GeolocSearchEngine, StreetSearchEngine

public interface IQueryProcessor<T extends AbstractGisQuery>

Interface that execute AbstractGisQuerys

Author:
David Masclet

Method Summary
 void executeAndSerialize(T query, java.io.OutputStream outputStream)
          Execute the query and serialize the results in an OutputStream.
 java.lang.String executeQueryToString(T query)
          Execute the query and returns the results as String.
 

Method Detail

executeAndSerialize

void executeAndSerialize(T query,
                         java.io.OutputStream outputStream)
                         throws ServiceException
Execute the query and serialize the results in an OutputStream. It is thread safe and can be used in a servlet container (e.g : serialize on an HttpResource's OutputStream

Parameters:
query - the query to execute
outputStream - the outputstream we want to serialize in
Throws:
ServiceException - If an error occurred

executeQueryToString

java.lang.String executeQueryToString(T query)
                                      throws ServiceException
Execute the query and returns the results as String. It is thread safe

Parameters:
query - the query to execute
Throws:
ServiceException - If an error occurred


Copyright © 2010. All Rights Reserved.