MB-16181: Add Collections Filter classes and test 37/78137/13
authorJim Walker <jim@couchbase.com>
Tue, 14 Mar 2017 15:05:40 +0000 (15:05 +0000)
committerDave Rigby <daver@couchbase.com>
Tue, 23 May 2017 17:58:38 +0000 (17:58 +0000)
commit042bf504cb62fda55f6c06d179ddd66955eb3a37
treebe25eb2a0376114e332eaa91a08d036d4aebf5aa
parente57f09f4da6cfb54c19d9ace1358d87a15b3400b
MB-16181: Add Collections Filter classes and test

Two classes exist for filtering.

Collections::Filter
Collections::VB::Filter

The idea is that a DCP producer will establish a Collections::Filter
that lives for the lifetime of the DCP producer.

As the DCP producer creates streams, a Collections::VB::Filter is
assigned to the stream which contains the real set of collections to
filter (and also the actual "filter" function).

Change-Id: I2f35b1698ce977116486a2e6940437eee25faef1
Reviewed-on: http://review.couchbase.org/78137
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
CMakeLists.txt
src/collections/filter.cc [new file with mode: 0644]
src/collections/filter.h [new file with mode: 0644]
src/collections/manifest.cc
src/collections/manifest.h
src/collections/vbucket_filter.cc [new file with mode: 0644]
src/collections/vbucket_filter.h [new file with mode: 0644]
src/collections/vbucket_manifest.h
tests/module_tests/collections/filter_test.cc [new file with mode: 0644]
tests/module_tests/collections/manifest_test.cc