MCPcopy Create free account
hub / github.com/apache/impala / Set

Method Set

be/src/udf/uda-test.cc:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 int buffer_len;
83
84 void Set(FunctionContext* context, const StringVal& val) {
85 if (buffer_len < val.len) {
86 context->Free(value);
87 value = context->Allocate(val.len);
88 buffer_len = val.len;
89 }
90 memcpy(value, val.ptr, val.len);
91 len = val.len;
92 }
93};
94
95// Initialize the MinState scratch space

Callers 1

MinUpdateFunction · 0.45

Calls 2

FreeMethod · 0.45
AllocateMethod · 0.45

Tested by

no test coverage detected