Research Article

The Embedded IoT Time Series Database for Hybrid Solid-State Storage System

Pseudocode 1

The redundancy elimination and compression rule.
Void Block-compression (new_block, previous_block, current_time, current_value)
{  If (new_block is empty) //Initialized the IoT time series data block
{   The address of the previous IoT time series data block is filled by the value of next_point in the new_block.
The current_time and current_value will be stored in the start_time and start_value in the new_block.
 block_start =0; //Checking the top value of this IoT time series data block
p_num =0;}
else {
 if (new_block.start_value == current_value) && (block_start ==0) && (new_block is not full)
  p_num++; // The same value with the first IoT time series data is summarized and records in p_num.
 else
  if (new_block is not full)
   {The current_value and new_block.start_value will be amplified and the short integer delta of them will be calculated and stored in D0to D2031;
   block_start =1; //Stopping to check the same value as the start_value. } }