63 Key(std::uint32_t capacity);
void setKeyFromRecord(Record *rec)
sets a key data field to the vaules from the passed record
Comp compare(Key other)
Compare function for comparing keys.
Key()
Default constructor. Sets key_format and key_data to nullptr.
Key(SearchKeyFormat *key_format, Data *key_data)
Constructor given appropriate key_format and key_data.
void setKeyFromValues(std::vector< void * > values)
sets a key data field to the values from the passed vector of void * pointers.
Comp compare(char *other, std::uint32_t size)
Compare function for comparing keys, one of which is serialized bytes of data.
Data * getKeyData()
Getter for key_data.
bool compareDifferent(Key *other_key, std::vector< Comp > comp_list)
Compare function for comparing keys from differing relations, but with the same format....
void setKeyData(Data *new_data)
Setter for key_data.
~Key()
Destructor.
Definition key.h:83
void setKeyFormat(SearchKeyFormat *new_format)
Setter for key format.
HashVal hash()
Hash function for hashing key, as raw bytes of data.
SearchKeyFormat * key_format
Definition key.h:240
Data * key_data
Definition key.h:246
bool compareDifferent(Key *other_key, Comp comp_op)
Compare function for comparing keys from differing relations, but with the same format....
Key(std::uint32_t capacity)
Constructor to create a Key object with key_data field of the size of some capacity and sets key_form...
SearchKeyFormat * getKeyFormat()
Getter function for key_format.
std::uint32_t FieldId
Definition swatdb_types.h:86
FieldType
Definition swatdb_types.h:97
std::uint32_t HashVal
Definition swatdb_types.h:136