// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "documentretriever.h" #include "fast_access_feed_view.h" #include namespace proton { /** * The document retriever used by the fast-access sub database. * * Handles retrieving of documents by combining from the underlying attribute manager * and document store. */ class FastAccessDocumentRetriever : public DocumentRetriever { private: FastAccessFeedView::SP _feedView; IAttributeManager::SP _attrMgr; public: FastAccessDocumentRetriever(FastAccessFeedView::SP feedView, IAttributeManager::SP attrMgr); ~FastAccessDocumentRetriever() override; uint32_t getDocIdLimit() const override { return _feedView->getDocIdLimit().get(); } }; } // namespace proton