Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
incr-stats-util-test.cc File Reference
#include <gtest/gtest.h>
#include <string>
#include <limits>
#include <cmath>
#include "common/logging.h"
#include "exprs/aggregate-functions.h"
#include "common/names.h"
Include dependency graph for incr-stats-util-test.cc:

Go to the source code of this file.

Functions

string EncodeNdv (const string &ndv, bool *is_encoded)
 
string DecodeNdv (const string &ndv, bool is_encoded)
 
 TEST (RleTest, TestEmptyRle)
 
 TEST (RleTest, TestNoEncode)
 
 TEST (RleTest, TestEncode)
 
int main (int argc, char **argv)
 

Variables

static const int HLL_LEN = pow(2, AggregateFunctions::HLL_PRECISION)
 

Function Documentation

string DecodeNdv ( const string &  ndv,
bool  is_encoded 
)

Definition at line 97 of file incr-stats-util.cc.

References HLL_LEN, and gen_ir_descriptions::idx.

Referenced by impala::FinalizePartitionedColumnStats(), and TEST().

string EncodeNdv ( const string &  ndv,
bool is_encoded 
)

Definition at line 58 of file incr-stats-util.cc.

References count, HLL_LEN, and gen_ir_descriptions::idx.

Referenced by impala::FinalizePartitionedColumnStats(), and TEST().

int main ( int  argc,
char **  argv 
)

Definition at line 73 of file incr-stats-util-test.cc.

TEST ( RleTest  ,
TestEmptyRle   
)

Definition at line 32 of file incr-stats-util-test.cc.

References DecodeNdv(), EncodeNdv(), and HLL_LEN.

TEST ( RleTest  ,
TestNoEncode   
)

Definition at line 45 of file incr-stats-util-test.cc.

References DecodeNdv(), EncodeNdv(), and HLL_LEN.

TEST ( RleTest  ,
TestEncode   
)

Definition at line 59 of file incr-stats-util-test.cc.

References DecodeNdv(), EncodeNdv(), and HLL_LEN.

Variable Documentation