Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

All Known Subinterfaces:
  IFullTextSearchEngine, IGeolocSearchEngine

All Known Implementing Classes:
  FullTextSearchEngine, GeolocSearchEngine

    public interface IQueryProcessor<T extends AbstractGisQuery>

Interface that execute `AbstractGisQuery`s

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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009. All Rights Reserved.