InfiniSQL  v0.1.2-alpha
Massive Scale Transaction Processing
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Field Class Reference

Field object. More...

#include <Field.h>

Collaboration diagram for Field:

Public Member Functions

 Field (fieldtype_e typearg, int64_t lengtharg, indextype_e indextypearg, std::string namearg)
 
virtual ~Field ()
 

Public Attributes

fieldtype_e type
 
size_t length
 
indextype_e indextype
 
class Index index
 
std::string name
 

Friends

class Transaction
 
class ApiInterface
 
class Table
 
class SubTransaction
 

Detailed Description

Field object.

Parameters
typeargtype of field, such as INT, FLOAT, CHAR
lengtharglength of field–set to 0 unless CHARX field
indextypeargindex type
nameargfield name

Definition at line 42 of file Field.h.

Constructor & Destructor Documentation

Field::Field ( fieldtype_e  typearg,
int64_t  lengtharg,
indextype_e  indextypearg,
std::string  namearg 
)

@ create field

also create index object associated with field

Parameters
typeargfield type
lengtharglength (for CHARX)
indextypeargindex type
nameargfield name

Definition at line 31 of file Field.cc.

References index, indextype, Index::makeindex(), and type.

32  :
33  type(typearg), length(lengtharg), indextype(indextypearg), name(namearg)
34 {
36 }

Here is the call graph for this function:

Field::~Field ( )
virtual

Definition at line 38 of file Field.cc.

39 {
40 }

Friends And Related Function Documentation

friend class ApiInterface
friend

Definition at line 60 of file Field.h.

friend class SubTransaction
friend

Definition at line 62 of file Field.h.

friend class Table
friend

Definition at line 61 of file Field.h.

friend class Transaction
friend

Definition at line 59 of file Field.h.

Member Data Documentation

indextype_e Field::indextype

Definition at line 67 of file Field.h.

Referenced by Statement::branchtotype(), Transaction::continueSqlReplace(), and Field().

size_t Field::length

Definition at line 66 of file Field.h.

Referenced by Table::addfield(), Table::makerow(), and Table::unmakerow().

std::string Field::name

Definition at line 69 of file Field.h.


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