SwatDB
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | Friends | List of all members
SearchKeyFormat Class Reference
Collaboration diagram for SearchKeyFormat:
Collaboration graph
[legend]

Public Member Functions

 SearchKeyFormat ()=delete
 Disable default Constructor.
 
SearchKeyFormatoperator= (const SearchKeyFormat &other)=delete
 Disable copy assignment constructor.
 
 SearchKeyFormat (std::vector< std::string > field_list, Schema *schema)
 Constructor of SearchKeyFormat.
 
 SearchKeyFormat (std::vector< FieldId > field_list, Schema *schema)
 Constructor of SearchKeyFormat.
 
 ~SearchKeyFormat ()
 Destructor.
 
void saveToFile (std::ofstream *out_file)
 outputs fieldids in field list to out file passed in by pointer.
 
void initFromFile (std::ifstream *in_file)
 initializes fieldids based on saved metadata
 
std::vector< FieldIdgetFieldList ()
 returns the vector list corresponding to the field list
 

Private Attributes

std::vector< FieldIdfield_list
 
Schemaschema
 

Friends

class Key
 
class Record
 

Constructor & Destructor Documentation

◆ SearchKeyFormat() [1/2]

SearchKeyFormat::SearchKeyFormat ( std::vector< std::string >  field_list,
Schema schema 
)

Constructor of SearchKeyFormat.

Precondition
Valid field_list and schema are provided.
Postcondition
The field_list and primary_key are initialized.

◆ SearchKeyFormat() [2/2]

SearchKeyFormat::SearchKeyFormat ( std::vector< FieldId field_list,
Schema schema 
)

Constructor of SearchKeyFormat.

Precondition
Valid field_list and schema are provided.
Postcondition
The field_list and primary_key are initialized.

Member Data Documentation

◆ field_list

std::vector<FieldId> SearchKeyFormat::field_list
private

FieldIds of the fields that constitute the key

◆ schema

Schema* SearchKeyFormat::schema
private

Schema of the base relation


The documentation for this class was generated from the following file: