Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <uda-test-harness-impl.h>
Public Member Functions | |
template<> | |
BufferVal | CreateIntermediate (FunctionContext *context, int byte_size) |
template<> | |
void | FreeIntermediate (FunctionContext *context, const BufferVal &v) |
template<> | |
BufferVal | CopyIntermediate (FunctionContext *context, int byte_size, const BufferVal &src) |
Static Public Member Functions | |
template<typename T > | |
static T | CreateIntermediate (FunctionContext *context, int byte_size) |
template<typename T > | |
static void | FreeIntermediate (FunctionContext *context, const T &v) |
template<typename T > | |
static T | CopyIntermediate (FunctionContext *context, int byte_size, const T &src) |
Utility class to help test UDAs. This can be used to test the correctness of the UDA, simulating multiple possible distributed execution setups. For example, the harness will run in the UDA in single node mode (so merge and serialize are unused), single level merge and multi-level merge. The test application is responsible for providing the data and expected result.
Definition at line 32 of file uda-test-harness-impl.h.
|
inlinestatic |
Copy src value into context, returning the new copy. This simulates copying the bytes between nodes.
Definition at line 48 of file uda-test-harness-impl.h.
BufferVal impala_udf::UdaTestHarnessUtil::CopyIntermediate | ( | FunctionContext * | context, |
int | byte_size, | ||
const BufferVal & | src | ||
) |
Definition at line 66 of file uda-test-harness-impl.h.
References impala_udf::FunctionContext::Allocate().
|
inlinestatic |
Definition at line 35 of file uda-test-harness-impl.h.
BufferVal impala_udf::UdaTestHarnessUtil::CreateIntermediate | ( | FunctionContext * | context, |
int | byte_size | ||
) |
Definition at line 54 of file uda-test-harness-impl.h.
References impala_udf::FunctionContext::Allocate().
|
inlinestatic |
No-op
Definition at line 40 of file uda-test-harness-impl.h.
void impala_udf::UdaTestHarnessUtil::FreeIntermediate | ( | FunctionContext * | context, |
const BufferVal & | v | ||
) |
Definition at line 60 of file uda-test-harness-impl.h.
References impala_udf::FunctionContext::Free().