-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code for locating triples in an existing index
This is the first part of a series of PRs split of from the large proof-of-concept PR #916, which realizes SPARQL 1.1 Update
- Loading branch information
Hannah Bast
committed
Jun 9, 2023
1 parent
df93d56
commit 84a4bdf
Showing
9 changed files
with
789 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2023, University of Freiburg | ||
// Chair of Algorithms and Data Structures | ||
// Authors: Hannah Bast <[email protected]> | ||
|
||
#pragma once | ||
|
||
#include <array> | ||
|
||
#include "global/Id.h" | ||
|
||
// Should we have an own class for this? We need this at several places. | ||
using IdTriple = std::array<Id, 3>; | ||
|
||
// Hash value for such triple. | ||
template <typename H> | ||
H AbslHashValue(H h, const IdTriple& triple) { | ||
return H::combine(std::move(h), triple[0], triple[1], triple[2]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// Copyright 2015, University of Freiburg, | ||
// Chair of Algorithms and Data Structures. | ||
// Author: Björn Buchhold ([email protected]) | ||
|
||
#pragma once | ||
|
||
#include <stdio.h> | ||
|
@@ -13,14 +14,14 @@ | |
#include <utility> | ||
#include <vector> | ||
|
||
#include "../global/Id.h" | ||
#include "../util/File.h" | ||
#include "../util/HashMap.h" | ||
#include "../util/MmapVector.h" | ||
#include "../util/ReadableNumberFact.h" | ||
#include "../util/Serializer/Serializer.h" | ||
#include "./MetaDataHandler.h" | ||
#include "CompressedRelation.h" | ||
#include "global/Id.h" | ||
#include "index/CompressedRelation.h" | ||
#include "index/MetaDataHandler.h" | ||
#include "util/File.h" | ||
#include "util/HashMap.h" | ||
#include "util/MmapVector.h" | ||
#include "util/ReadableNumberFact.h" | ||
#include "util/Serializer/Serializer.h" | ||
|
||
using std::array; | ||
using std::pair; | ||
|
@@ -86,7 +87,10 @@ class IndexMetaData { | |
// name and the variable name are terrible. | ||
|
||
// For each relation, its meta data. | ||
public: | ||
MapType _data; | ||
|
||
private: | ||
// For each compressed block, its meta data. | ||
BlocksType _blockData; | ||
|
||
|
Oops, something went wrong.