Can I use multiple filters in PullReplication?
Like I am trying to do so.
mDatabase.setFilter("filterOne", new ReplicationFilter() {
@Override
public boolean filter(SavedRevision savedRevision, Map<String, Object> map)
{
// TODO Auto-generated method stub
return false;
}
});
mDatabase.setFilter("filterTwo", new ReplicationFilter() {
@Override
public boolean filter(SavedRevision savedRevision, Map<String, Object> map)
{
// TODO Auto-generated method stub
return false;
}
});
mDatabase.setFilter("filterThree", new ReplicationFilter() {
@Override
public boolean filter(SavedRevision savedRevision, Map<String, Object> map)
{
// TODO Auto-generated method stub
return false;
}
});
pullReplication.setFilter("filterOne");
pullReplication.setFilter("filterTwo");
pullReplication.setFilter("filterThree");
Will it work to set multiple filters individually? Is there any
documentation for that?
or do we have any provision of doing so:
List<String> filters;
pullReplication.setFilters(filters);
Please make it clear to me.
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/dfd6d690-eb7a-4dc0-ad29-bcb91d17a6b4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.