QueryDatabase#
Currently, this API is unsupported in Python
-
class QueryDatabase#
A class for a queryable encrypted database.
Public Functions
-
QueryDatabase(const HeContext &he)#
Construct a new QueryDatabase object.
- Parameters:
he – The HeContext.
-
void init(const std::vector<uint16_t> &database, int numChildren)#
Initializes this QueryDatabase object with data.
- Parameters:
database – The plain database.
numChildren – The number of children of every internal node in the partition trees data structure of this QueryDatabase.
-
void countQuery(CTile &res, const CTile &start, const CTile &end, int gRep, int fRep, int maxDist)#
Performs a count query.
Returns an encryption of the number of elements contained within the given encrypted range.
- Parameters:
res – The output result.
start – The start of the query range.
end – The end of the query range.
gRep – Sets the accuracy of the compare function, see FunctionEvaluator::sign.
fRep – Sets the accuracy of the compare function, see FunctionEvaluator::sign.
maxDist – The maximal distance between every two elements in the database.
-
inline void setVerbosity(Verbosity verbosity)#
Sets the verbosity.
- Parameters:
verbosity – The verbosity level.
-
int getNumUsedTiles() const#
Gets the number of used tiles in this QueryDatabase object.
-
QueryDatabase(const HeContext &he)#