Main Content

Fill Values for Missing Data from Database Using ApacheCassandraDatabase C++ Interface

When you import data from a Cassandra®database into MATLAB®using thepartitionReadorexecutecqlfunctions of the Apache Cassandra database C++ interface, these functions convert the fill values for missing data from the Cassandra column to the corresponding MATLAB values. This table identifies the data types in a Cassandra database column (Cassandra Query Language, or CQL, data type) and the corresponding fill value for missing data in the MATLAB table.

CQL Data Type MATLAB Fill Value

ascii

bigint

0

blob

[]

boolean

false

counter

0

date

NaT

decimal

double

NaN

float

NaN

inet

int

0

list<type>

[]

map<keyType,valueType>

0x2 table(empty table)

set<type>

[]

smallint

0

text

time

NaN

timestamp

NaT

timeuuid

tinyint

0

tuple<Type1,...,TypeN>

1xntable, where the missing value in each variable is the MATLAB fill value for the corresponding CQL data type

user-defined type (UDT)

1xntable, where the missing value in each variable is the MATLAB fill value for the corresponding CQL data type

uuid

varchar

varint

See Also

Objects

Functions

Related Topics

External Websites