0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Typedefs | Enumerations | Functions
ht_load_generator.cc File Reference
#include <Common/Compat.h>
#include "LoadClient.h"
#include "LoadThread.h"
#include "QueryThread.h"
#include "ParallelLoad.h"
#include <Hypertable/Lib/Client.h>
#include <Hypertable/Lib/DataGenerator.h>
#include <Hypertable/Lib/Config.h>
#include <Hypertable/Lib/Cells.h>
#include <Common/Stopwatch.h>
#include <Common/String.h>
#include <Common/Init.h>
#include <Common/Usage.h>
#include <boost/algorithm/string.hpp>
#include <boost/progress.hpp>
#include <boost/shared_array.hpp>
#include <boost/thread/thread.hpp>
#include <chrono>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <thread>
Include dependency graph for ht_load_generator.cc:

Go to the source code of this file.

Typedefs

typedef Meta::list< AppPolicy,
DataGeneratorPolicy,
DefaultCommPolicy
Policies
 

Enumerations

enum  { DEFAULT = 0, INDEX = 1, QUALIFIER = 2 }
 

Functions

void generate_update_load (PropertiesPtr &props, String &tablename, bool flush,::uint32_t mutator_flags,::uint64_t flush_interval,::uint64_t shared_mutator_flush_interval, bool to_stdout, String &sample_fname,::int32_t delete_pct, bool thrift)
 
void generate_update_load_parallel (PropertiesPtr &props, String &tablename,::int32_t parallel, bool flush,::uint32_t mutator_flags,::uint64_t flush_interval,::uint64_t shared_mutator_flush_interval,::int32_t delete_pct, bool thrift)
 
void generate_query_load (PropertiesPtr &props, String &tablename, bool to_stdout,::int32_t delay, String &sample_fname, bool thrift)
 
void generate_query_load_parallel (PropertiesPtr &props, String &tablename, int32_t parallel)
 
double std_dev (::uint64_t nn, double sum, double sq_sum)
 
void parse_command_line (int argc, char **argv, PropertiesPtr &props)
 
int main (int argc, char **argv)
 

Typedef Documentation

Definition at line 119 of file ht_load_generator.cc.

Enumeration Type Documentation

anonymous enum
Enumerator
DEFAULT 
INDEX 
QUALIFIER 

Definition at line 652 of file ht_load_generator.cc.

Function Documentation

void generate_query_load ( PropertiesPtr props,
String tablename,
bool  to_stdout,
::int32_t  delay,
String sample_fname,
bool  thrift 
)

Definition at line 658 of file ht_load_generator.cc.

void generate_query_load_parallel ( PropertiesPtr props,
String tablename,
int32_t  parallel 
)

Definition at line 805 of file ht_load_generator.cc.

void generate_update_load ( PropertiesPtr props,
String tablename,
bool  flush,
::uint32_t  mutator_flags,
::uint64_t  flush_interval,
::uint64_t  shared_mutator_flush_interval,
bool  to_stdout,
String sample_fname,
::int32_t  delete_pct,
bool  thrift 
)

Definition at line 307 of file ht_load_generator.cc.

void generate_update_load_parallel ( PropertiesPtr props,
String tablename,
::int32_t  parallel,
bool  flush,
::uint32_t  mutator_flags,
::uint64_t  flush_interval,
::uint64_t  shared_mutator_flush_interval,
::int32_t  delete_pct,
bool  thrift 
)

Definition at line 516 of file ht_load_generator.cc.

int main ( int  argc,
char **  argv 
)

Definition at line 145 of file ht_load_generator.cc.

void parse_command_line ( int  argc,
char **  argv,
PropertiesPtr props 
)

Definition at line 260 of file ht_load_generator.cc.

double std_dev ( ::uint64_t  nn,
double  sum,
double  sq_sum 
)
Parameters
nnSize of set of numbers
sumSum of numbers in set
sq_sumSum of squares of numbers in set
Returns
std deviation of set

Definition at line 871 of file ht_load_generator.cc.