NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
The Integer type represents whole numbers, that is, numbers without fractional components, of various ranges. The internal Integer type is parameterised by its bit size, and its lower and upper bound Integer(bitSize, lowerBound, upperBound) More...
#include <Integer.hpp>
Public Member Functions | |
Integer (int8_t bits, int64_t lowerBound, int64_t upperBound) noexcept | |
Constructs a new Integer type. More... | |
~Integer () override=default | |
bool | isInteger () const override |
Checks if this data type is Integer. More... | |
bool | equals (DataTypePtr otherDataType) override |
Checks if two data types are equal. More... | |
DataTypePtr | join (DataTypePtr otherDataType) override |
Calculates the joined data type between this data type and the other. If they have no possible joined data type, the coined type is Undefined. For integers, we can join with all numeric data types. More... | |
std::string | toString () override |
Returns a string representation of the data type. More... | |
![]() | |
Numeric (int8_t bits) | |
~Numeric () override=default | |
bool | isNumeric () const final |
Checks if this data type is Numeric. More... | |
int8_t | getBits () const |
Gets the bit size of this type. More... | |
![]() | |
virtual | ~DataType ()=default |
virtual bool | isUndefined () const |
Checks if this data type is Undefined. More... | |
virtual bool | isBoolean () const |
Checks if this data type is Boolean. More... | |
virtual bool | isFloat () const |
Checks if this data type is Float. More... | |
virtual bool | isArray () const |
Checks if this data type is ArrayType. More... | |
virtual bool | isCharArray () const |
Checks if this data type is ArrayType. More... | |
virtual bool | isChar () const |
Checks if this data type is Char. More... | |
virtual bool | isText () const |
Checks if this data type is Char. More... | |
Public Attributes | |
int64_t const | lowerBound |
int64_t const | upperBound |
Additional Inherited Members | |
![]() | |
template<class DataType > | |
static std::shared_ptr< DataType > | as (DataTypePtr ptr) |
![]() | |
const int8_t | bits |
The Integer type represents whole numbers, that is, numbers without fractional components, of various ranges. The internal Integer type is parameterised by its bit size, and its lower and upper bound Integer(bitSize, lowerBound, upperBound)
|
inlinenoexcept |
Constructs a new Integer type.
bits | the number of bits in which this type is represented. |
lowerBound | the lower bound, which is contained in that integer. |
upperBound | the upper bound, which is contained in that integer. |
|
overridedefault |
|
overridevirtual |
Checks if two data types are equal.
otherDataType |
Implements NES::DataType.
References NES::Numeric::bits, lowerBound, and upperBound.
|
inlineoverridevirtual |
Checks if this data type is Integer.
Reimplemented from NES::DataType.
|
overridevirtual |
Calculates the joined data type between this data type and the other. If they have no possible joined data type, the coined type is Undefined. For integers, we can join with all numeric data types.
other | data type |
Implements NES::DataType.
References NES::Numeric::bits, NES::DataTypeFactory::createFloat(), NES::DataTypeFactory::createInteger(), NES::DataTypeFactory::createUndefined(), lowerBound, and upperBound.
|
overridevirtual |
Returns a string representation of the data type.
Implements NES::DataType.
References NES::Numeric::bits.