NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
NES::AttributeField Class Reference

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...
 

Detailed Description

Represents a typed field in a schema.

Constructor & Destructor Documentation

◆ AttributeField() [1/2]

NES::AttributeField::AttributeField ( )
default

◆ AttributeField() [2/2]

NES::AttributeField::AttributeField ( std::string  name,
DataTypePtr  dataType 
)

Member Function Documentation

◆ copy()

AttributeFieldPtr NES::AttributeField::copy ( ) const

Make copy of this attribute.

Returns
shared pointer

References create().

Here is the call graph for this function:

◆ create()

AttributeFieldPtr NES::AttributeField::create ( const std::string &  name,
const DataTypePtr dataType 
)
static

Factory method to create a new field.

Parameters
namename of the field
dataTypedata type
Returns
AttributeFieldPtr

Referenced by NES::Schema::addField(), copy(), NES::createField(), and NES::Schema::replaceField().

Here is the caller graph for this function:

◆ getDataType()

DataTypePtr NES::AttributeField::getDataType ( ) const

◆ getName()

const std::string & NES::AttributeField::getName ( ) const

◆ hash()

uint64_t NES::AttributeField::hash ( ) const

◆ isEqual()

bool NES::AttributeField::isEqual ( const AttributeFieldPtr attr) const

◆ setName()

void NES::AttributeField::setName ( std::string  newName)

References backward::details::move().

Here is the call graph for this function:

◆ toString()

std::string NES::AttributeField::toString ( ) const

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