CONZEPT 16 C++ API
C16::Key::Reorganization Class Reference

Reorganization of a key. More...

#include "C16/Key.hpp"

Detailed Description

Public Types

enum  Status { Status::RUNNING = 1, Status::DONE, Status::ABORTED }
 Status of a reorganization of a key. More...
 
enum  Result { Result::OK, Result::ABORTED, Result::SERVER_BUSY, Result::SERVER_DATA_STRUCTURE }
 Result of a reorganization of a key. More...
 
using Callback = std::function< void(Status status, long long int record_id_processed_last, long int key_entries_processed, long int records_defective, long int key_entry_collisions, bool &abort) >
 Callback of a reorganization of a key. More...
 

Member Typedef Documentation

◆ Callback

using C16::Key::Reorganization::Callback = std::function<void ( Status status, long long int record_id_processed_last, long int key_entries_processed, long int records_defective, long int key_entry_collisions, bool& abort ) >

Callback of a reorganization of a key.

Parameters
statusStatus of the reorganization
record_id_processed_lastId of the record processed last
key_entries_processedCount of the processed key entries
records_defectiveCount of the defective records
abortAbort the reorganization

Member Enumeration Documentation

◆ Status

Status of a reorganization of a key.

Enumerator
RUNNING 

Reorganization running.

DONE 

Reorganization done.

ABORTED 

Reorganization aborted.

◆ Result

Result of a reorganization of a key.

Enumerator
OK 

Reorganization succeeded.

ABORTED 

Reorganization aborted.

SERVER_BUSY 

Server busy.

SERVER_DATA_STRUCTURE 

Server could not load data structure.