Hi,

I think you can implement ProjectableFilterableTable.
In the implemented scan function, you need to remove the supported filter.

On Wed, Jan 28, 2015 at 9:47 PM, Vladimir Dolzhenko <
[email protected]> wrote:

> I'd like to make adapter from some REST api, that is able to filter data
> based on query params like /select?name=myName but doesn't support a
> filtering for each field.
>
> So - from one side it could be implementation on top of
> AbstractQueryableTable with enumerator wraps REST call that fetches all
> data (or lazy fetching using paging but it doesn't matter) and filter it
> afterward (in generated java code).
>
> From other side it could be a filter (smth like MongoFilter) - it works
> fine for those fields that are supported by REST but it fails it REST can't
> handle.
>
> Ideally it could be like a mix of REST filter + filtering in generated java
> code but I got stuck how to manage to do that.
>
> Appreciate for the ideas and suggestions.
>

Reply via email to