taco-db  0.1.0
tuple_compare.h
Go to the documentation of this file.
1 #ifndef INDEX_TUPLECOMPARE_H
2 #define INDEX_TUPLECOMPARE_H
3 
4 #include "tdb.h"
5 
6 #include "catalog/Schema.h"
7 #include "index/IndexKey.h"
8 
9 namespace taco {
10 
32 int TupleCompare(const IndexKey *key,
33  const char *tuplebuf,
34  const Schema *schema,
35  const FunctionInfo *lt_funcs,
36  const FunctionInfo *eq_funcs);
37 
38 bool TupleEqual(const IndexKey *key,
39  const char *tuplebuf,
40  const Schema *schema,
41  const FunctionInfo *eq_funcs);
42 
43 } // namespace taco
44 
45 #endif // INDEX_TUPLECOMPARE_H
Definition: datum.h:28
int TupleCompare(const IndexKey *key, const char *tuplebuf, const Schema *schema, const FunctionInfo *lt_funcs, const FunctionInfo *eq_funcs)
Compares the key with the tuple serialized in the buffer tuplebuf with the schema,...
Definition: tuple_compare.cpp:6
bool TupleEqual(const IndexKey *key, const char *tuplebuf, const Schema *schema, const FunctionInfo *eq_funcs)
Definition: tuple_compare.cpp:61
std::function< Datum(FunctionCallInfo &)> FunctionInfo
An FMGR managed function should be declared as.
Definition: fmgr.h:50