Storage Engine API
record_fetcher.h
Go to the documentation of this file.
1 
29 #pragma once
30 
31 namespace mongo {
32 
33 class OperationContext;
34 
41 public:
42  virtual ~RecordFetcher() {}
43 
47  virtual void setup(OperationContext* opCtx) = 0;
48 
54  virtual void fetch() = 0;
55 };
56 
57 } // namespace mongo
Used for yielding while data is fetched from disk.
Definition: record_fetcher.h:40
virtual ~RecordFetcher()
Definition: record_fetcher.h:42
Copyright (C) 2014 MongoDB Inc.
Definition: bson_collection_catalog_entry.cpp:38
virtual void fetch()=0
Called after locks are yielded in order to bring data into memory.
virtual void setup(OperationContext *opCtx)=0
Performs any setup which is needed prior to yielding locks.
Collection *const OperationContext *const opCtx
Definition: collection_impl.cpp:80