Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <gtest/gtest.h>
#include <string>
#include <limits>
#include <cmath>
#include "common/logging.h"
#include "exprs/aggregate-functions.h"
#include "common/names.h"
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) |
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.
|
static |
Definition at line 30 of file incr-stats-util-test.cc.
Referenced by DecodeNdv(), EncodeNdv(), impala::FinalizePartitionedColumnStats(), IncrementNdvFinalize(), and TEST().