Home
last modified time | relevance | path

Searched refs:DocID (Results 1 – 6 of 6) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/index/dex/
DPostingList.cpp46 void advanceTo(DocID ID) override { in advanceTo()
54 [&](const DocID D) { return D < ID; }); in advanceTo()
58 DocID peek() const override { in peek()
80 for (const DocID Doc : C.decompress()) { in dump()
102 void advanceToChunk(DocID ID) { in advanceToChunk()
121 llvm::SmallVector<DocID, Chunk::PayloadSize + 1> DecompressedChunk;
132 bool encodeVByte(DocID Delta, llvm::MutableArrayRef<uint8_t> &Payload) { in encodeVByte()
168 std::vector<Chunk> encodeStream(llvm::ArrayRef<DocID> Documents) { in encodeStream()
172 DocID Last = Result.back().Head = Documents.front(); in encodeStream()
174 for (DocID Doc : Documents.drop_front()) { in encodeStream()
[all …]
DIterator.cpp57 void advanceTo(DocID ID) override { in advanceTo()
63 DocID peek() const override { return Children.front()->peek(); } in peek()
159 void advanceTo(DocID ID) override { in advanceTo()
168 DocID peek() const override { in peek()
170 DocID Result = std::numeric_limits<DocID>::max(); in peek()
183 const DocID ID = peek(); in consume()
220 explicit TrueIterator(DocID Size) : Iterator(Kind::True), Size(Size) {} in TrueIterator()
229 void advanceTo(DocID ID) override { in advanceTo()
234 DocID peek() const override { in peek()
251 DocID Index = 0;
[all …]
DPostingList.h44 static constexpr size_t PayloadSize = 32 - sizeof(DocID);
46 llvm::SmallVector<DocID, PayloadSize + 1> decompress() const;
49 DocID Head;
61 explicit PostingList(llvm::ArrayRef<DocID> Documents);
DIterator.h46 using DocID = uint32_t; variable
68 virtual void advanceTo(DocID ID) = 0;
72 virtual DocID peek() const = 0;
120 std::vector<std::pair<DocID, float>> consume(Iterator &It);
135 DocID Size;
138 explicit Corpus(DocID Size) : Size(Size) {} in Corpus()
DDex.cpp48 llvm::DenseMap<Trigram, std::vector<DocID>> TrigramDocs;
49 std::vector<DocID> RestrictedCCDocs;
50 llvm::StringMap<std::vector<DocID>> TypeDocs;
51 llvm::StringMap<std::vector<DocID>> ScopeDocs;
52 llvm::StringMap<std::vector<DocID>> ProximityDocs;
60 void add(const Symbol &Sym, DocID D) { in add()
123 for (DocID SymbolRank = 0; SymbolRank < Symbols.size(); ++SymbolRank) in buildIndex()
236 using IDAndScore = std::pair<DocID, float>; in fuzzyFind()
245 const DocID SymbolDocID = IDAndScore.first; in fuzzyFind()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DDexTests.cpp40 std::vector<DocID> consumeIDs(Iterator &It) { in consumeIDs()
42 std::vector<DocID> IDs(IDAndScore.size()); in consumeIDs()