public class ResultFinderImpl<Q extends Query,R extends Response<? extends Entity>,U,V> extends java.lang.Object implements ResultFinder<Q,R>
ResultFinder
that properly
threads together the QueryCoder
, DataSource
, and
ResponseDecoder
to execute a find request.ResultFinder
Constructor and Description |
---|
ResultFinderImpl(QueryCoder<Q,U> queryCoder,
DataSource<U,V> dataSource,
ResponseDecoder<R,V> responseDecoder) |
public ResultFinderImpl(QueryCoder<Q,U> queryCoder, DataSource<U,V> dataSource, ResponseDecoder<R,V> responseDecoder)
public R find(Q query, Client client) throws FindException
ResultFinder
find
in interface ResultFinder<Q extends Query,R extends Response<? extends Entity>>
query
- The query to performclient
- The client object to use.FindException
- The wrapper class for any exceptions that may occur before a Response can be created and returned.