10#ifndef _SWATDB_SCHEMMA_H_
11#define _SWATDB_SCHEMMA_H_
21#include <unordered_map>
125 std::string getFieldName(
FieldId field_id);
Definition indexfile.h:41
Definition relopsmgr.h:46
Schema(std::vector< FieldEntry > field_list, std::vector< std::string > primary_key)
Constructor of Schema.
FieldId getFieldId(std::string field_name)
getter function for the FieldId associated with a field name.
Schema()=delete
Disable default Constructor.
std::vector< FieldEntry > field_list
Definition schema.h:178
Schema(std::ifstream *in_file)
Schema Constructor that initializes schema based on saved metadata.
std::unordered_map< std::string, FieldId > field_map
Definition schema.h:172
Schema(const Schema &other)
Disable copy assignment constructor.
FieldType getFieldType(FieldId field_id)
returns the field type given a field_id
void saveToFile(std::ofstream *out_file)
save schema metadata to a file.
std::vector< FieldId > primary_key
Definition schema.h:185
~Schema()
Destructor.
Definition schema.h:123
std::uint32_t FieldId
Definition swatdb_types.h:86
FieldType
Definition swatdb_types.h:97