Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala_udf::UdaTestHarnessUtil Class Reference

#include <uda-test-harness-impl.h>

Collaboration diagram for impala_udf::UdaTestHarnessUtil:

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)
 

Detailed Description

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.

Member Function Documentation

template<typename T >
static T impala_udf::UdaTestHarnessUtil::CopyIntermediate ( FunctionContext context,
int  byte_size,
const T &  src 
)
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.

template<>
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().

template<typename T >
static T impala_udf::UdaTestHarnessUtil::CreateIntermediate ( FunctionContext context,
int  byte_size 
)
inlinestatic

Definition at line 35 of file uda-test-harness-impl.h.

template<>
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().

template<typename T >
static void impala_udf::UdaTestHarnessUtil::FreeIntermediate ( FunctionContext context,
const T &  v 
)
inlinestatic

No-op

Definition at line 40 of file uda-test-harness-impl.h.

template<>
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().


The documentation for this class was generated from the following file: