test_class.declarator: ds
test_class.modifier: private
test_class.original_string: private DocumentStore ds;
test_class.type: DocumentStore
test_class.var_name: ds
test_class.file: oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/cache/CacheChangesTrackerTest.java
test_class.identifier: CacheChangesTrackerTest
test_case.body: @Test
      public void testGetLoaderAffectsTracker() throws ExecutionException {
          NodeDocumentCache cache = createCache();
          Path parent = Path.fromString("/parent");
          CacheChangesTracker tracker = cache.registerTracker(getKeyLowerLimit(parent), getKeyUpperLimit(parent));
  
          assertFalse(tracker.mightBeenAffected("2:/parent/xyz"));
  
          cache.getIfPresent("2:/parent/xyz");
          assertFalse(tracker.mightBeenAffected("2:/parent/xyz"));
  
          cache.get("2:/parent/xyz", new Callable<NodeDocument>() {
              @Override
              public NodeDocument call() throws Exception {
                  return createDoc("2:/parent/xyz");
              }
          });
          assertTrue(tracker.mightBeenAffected("2:/parent/xyz"));
      }
test_case.class_method_signature: CacheChangesTrackerTest.testGetLoaderAffectsTracker()
test_case.full_signature: @Test public void testGetLoaderAffectsTracker()
test_case.identifier: testGetLoaderAffectsTracker
test_case.invocations: createCache fromString registerTracker getKeyLowerLimit getKeyUpperLimit assertFalse mightBeenAffected getIfPresent assertFalse mightBeenAffected get createDoc assertTrue mightBeenAffected
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetLoaderAffectsTracker()
focal_class.declarator: LOG = LoggerFactory.getLogger(CacheChangesTracker.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(CacheChangesTracker.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: ENTRIES_SCOPED = 1000
focal_class.modifier: static final
focal_class.original_string: static final int ENTRIES_SCOPED = 1000;
focal_class.type: int
focal_class.var_name: ENTRIES_SCOPED
focal_class.declarator: ENTRIES_OPEN = 10000
focal_class.modifier: static final
focal_class.original_string: static final int ENTRIES_OPEN = 10000;
focal_class.type: int
focal_class.var_name: ENTRIES_OPEN
focal_class.declarator: changeTrackers
focal_class.modifier: private final
focal_class.original_string: private final List<CacheChangesTracker> changeTrackers;
focal_class.type: List<CacheChangesTracker>
focal_class.var_name: changeTrackers
focal_class.declarator: keyFilter
focal_class.modifier: private final
focal_class.original_string: private final Predicate<String> keyFilter;
focal_class.type: Predicate<String>
focal_class.var_name: keyFilter
focal_class.declarator: lazyBloomFilter
focal_class.modifier: private final
focal_class.original_string: private final LazyBloomFilter lazyBloomFilter;
focal_class.type: LazyBloomFilter
focal_class.var_name: lazyBloomFilter
focal_class.file: oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/cache/CacheChangesTracker.java
focal_class.identifier: CacheChangesTracker
focal_class.interfaces: implements Closeable
focal_class.class_method_signature: CacheChangesTracker.CacheChangesTracker(Predicate<String> keyFilter, List<CacheChangesTracker> changeTrackers, int bloomFilterSize)
focal_class.full_signature:   CacheChangesTracker(Predicate<String> keyFilter, List<CacheChangesTracker> changeTrackers, int bloomFilterSize)
focal_class.identifier: CacheChangesTracker
focal_class.parameters: (Predicate<String> keyFilter, List<CacheChangesTracker> changeTrackers, int bloomFilterSize)
focal_class.signature:  CacheChangesTracker(Predicate<String> keyFilter, List<CacheChangesTracker> changeTrackers, int bloomFilterSize)
focal_class.class_method_signature: CacheChangesTracker.putDocument(String key)
focal_class.full_signature: public void putDocument(String key)
focal_class.identifier: putDocument
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: void
focal_class.signature: void putDocument(String key)
focal_class.class_method_signature: CacheChangesTracker.invalidateDocument(String key)
focal_class.full_signature: public void invalidateDocument(String key)
focal_class.identifier: invalidateDocument
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: void
focal_class.signature: void invalidateDocument(String key)
focal_class.class_method_signature: CacheChangesTracker.mightBeenAffected(String key)
focal_class.full_signature: public boolean mightBeenAffected(String key)
focal_class.identifier: mightBeenAffected
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: boolean
focal_class.signature: boolean mightBeenAffected(String key)
focal_class.class_method_signature: CacheChangesTracker.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_method.body: public boolean mightBeenAffected(String key) {
          return keyFilter.apply(key) && lazyBloomFilter.mightContain(key);
      }
focal_method.class_method_signature: CacheChangesTracker.mightBeenAffected(String key)
focal_method.full_signature: public boolean mightBeenAffected(String key)
focal_method.identifier: mightBeenAffected
focal_method.invocations: apply mightContain
focal_method.modifiers: public
focal_method.parameters: (String key)
focal_method.return: boolean
focal_method.signature: boolean mightBeenAffected(String key)