Class create_table::SyntheticTable¶
-
class
SyntheticTable
¶ Public Functions
-
def create_table.SyntheticTable.__init__()
kwargs: table_name(str): synthetic table's name in the database fragment_size(int): fragment size (number of entries per fragment) num_fragment(int): total number of fragments for the synthetic table db_user(str): database username db_password(str): database password db_port(int): database port db_name(str): database name db_server(str): database server name data_dir_path(str): path to directory that will include the generated data is_remote_server(Bool): if True, it indicates that this class is not created on the same machine that is going to host the server.
-
def create_table.SyntheticTable.createDataAndImportTable()
-
def create_table.SyntheticTable.generateColumnsSchema()
-
def create_table.SyntheticTable.getCreateTableCommand()
-
def create_table.SyntheticTable.getCopyFromCommand()
-
def create_table.SyntheticTable.generateData()
Single-thread random data generation based on the provided schema. Data is stored in CSV format.
-
def create_table.SyntheticTable.generateDataParallel()
Uses all available CPU threads to generate random data based on the provided schema. Data is stored in CSV format.
-
def create_table.SyntheticTable.createExpectedTableDetails()
Creates table details in the same format as expected from pymapd's get_table_details
-
def create_table.SyntheticTable.doesTableHasExpectedSchemaInDB()
Verifies whether the existing table in the database has the expected schema or not.
-
def create_table.SyntheticTable.doesTableHasExpectedNumEntriesInDB()
Verifies whether the existing table in the database has the expected number of entries in it as in this class.
-
def create_table.SyntheticTable.createTableInDB()
-
def create_table.SyntheticTable.importDataIntoTableInDB()
Public Members
-
create_table.SyntheticTable::table_name
-
create_table.SyntheticTable::fragment_size
-
create_table.SyntheticTable::num_fragments
-
create_table.SyntheticTable::db_name
-
create_table.SyntheticTable::db_user
-
create_table.SyntheticTable::db_password
-
create_table.SyntheticTable::db_server
-
create_table.SyntheticTable::db_port
-
create_table.SyntheticTable::data_dir_path
-
create_table.SyntheticTable::num_entries
-
create_table.SyntheticTable::column_list
-
create_table.SyntheticTable::is_remote_server
-
create_table.SyntheticTable::data_file_name_base
-