NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
Represents a typed field in a schema. More...
#include <AttributeField.hpp>
Public Member Functions | |
AttributeField ()=default | |
AttributeField (std::string name, DataTypePtr dataType) | |
DataTypePtr | getDataType () const |
const std::string & | getName () const |
void | setName (std::string newName) |
std::string | toString () const |
bool | isEqual (const AttributeFieldPtr &attr) const |
uint64_t | hash () const |
AttributeFieldPtr | copy () const |
Make copy of this attribute. More... | |
Static Public Member Functions | |
static AttributeFieldPtr | create (const std::string &name, const DataTypePtr &dataType) |
Factory method to create a new field. More... | |
Represents a typed field in a schema.
|
default |
NES::AttributeField::AttributeField | ( | std::string | name, |
DataTypePtr | dataType | ||
) |
AttributeFieldPtr NES::AttributeField::copy | ( | ) | const |
Make copy of this attribute.
References create().
|
static |
Factory method to create a new field.
name | name of the field |
dataType | data type |
Referenced by NES::Schema::addField(), copy(), NES::createField(), and NES::Schema::replaceField().
DataTypePtr NES::AttributeField::getDataType | ( | ) | const |
const std::string & NES::AttributeField::getName | ( | ) | const |
uint64_t NES::AttributeField::hash | ( | ) | const |
bool NES::AttributeField::isEqual | ( | const AttributeFieldPtr & | attr | ) | const |
void NES::AttributeField::setName | ( | std::string | newName | ) |
std::string NES::AttributeField::toString | ( | ) | const |