10#ifndef _SWATDB_RECORD_H_
11#define _SWATDB_RECORD_H_
Data * record_data
Definition record.h:264
void setRecordFromRecord(std::vector< FieldId > field_list, Record *result_rec)
Method that extracts data values from the current record and inserts the values associated with the p...
Data * getRecordData()
Getter for record_data.
Schema * getSchema()
Getter function for schema.
char * getStringField(FieldId field_id, FieldOffset *length)
Method that returns a pointer to the start of the desired string field from a record.
Schema * schema
Definition record.h:258
void setSchema(Schema *new_schema)
Setter for schema.
Record(Schema *schema)
Constructor given appropriate Schema*.
std::string getFieldData(FieldId field_id)
Method that returns the value of specified field in string format.
void setRecordData(std::vector< std::string > tuple_vals)
Setter for record_data with structured input.
void setRecordData(Data *new_data)
Setter for record_data.
float getFloatField(FieldId field_id)
Method that returns a float field from a record.
void _getOffset(FieldId field_id, FieldOffset *offset, FieldOffset *length)
helper method to calculate the offset value and field length given a field_id
~Record()
Destructor.
Definition record.h:73
void combineRecords(std::vector< FieldId > field_list, Record *other_rec, Record *result_rec)
Method that combines two records fields into one larger method, with field_ids passed in that should ...
std::int32_t getIntField(FieldId field_id)
Method that returns the int field from a record.
Record()
Default constructor. Sets schema and record_data to nullptr.
Record(Schema *schema, Data *record_data)
Constructor given appropriate Data* and Schema*.
bool compareFieldToValue(FieldId field_id, void *value, Comp comp)
Compare function for a record and a given value.
std::uint32_t FieldId
Definition swatdb_types.h:86
std::uint16_t FieldOffset
Definition swatdb_types.h:92