@@ -211,8 +211,8 @@ hybridse::codec::Row CoreAPI::RowConstProject(const RawPtrHandle fn,
211211}
212212
213213hybridse::codec::Row CoreAPI::RowProject (const RawPtrHandle fn,
214- const hybridse::codec::Row row,
215- const hybridse::codec::Row parameter,
214+ const hybridse::codec::Row& row,
215+ const hybridse::codec::Row& parameter,
216216 const bool need_free) {
217217 if (row.empty ()) {
218218 return hybridse::codec::Row ();
@@ -246,7 +246,7 @@ hybridse::codec::Row CoreAPI::UnsafeRowProject(
246246 hybridse::vm::ByteArrayPtr inputUnsafeRowBytes,
247247 const int inputRowSizeInBytes, const bool need_free) {
248248 // Create Row from input UnsafeRow bytes
249- auto inputRow = Row (base::RefCountedSlice::Create (inputUnsafeRowBytes,
249+ auto inputRow = Row (base::RefCountedSlice::CreateManaged (inputUnsafeRowBytes,
250250 inputRowSizeInBytes));
251251 auto row_ptr = reinterpret_cast <const int8_t *>(&inputRow);
252252
@@ -280,7 +280,7 @@ void CoreAPI::CopyRowToUnsafeRowBytes(const hybridse::codec::Row inputRow,
280280
281281hybridse::codec::Row CoreAPI::WindowProject (const RawPtrHandle fn,
282282 const uint64_t row_key,
283- const Row row,
283+ const Row& row,
284284 WindowInterface* window) {
285285 if (row.empty ()) {
286286 return row;
@@ -313,7 +313,7 @@ hybridse::codec::Row CoreAPI::WindowProject(const RawPtrHandle fn,
313313}
314314
315315hybridse::codec::Row CoreAPI::WindowProject (const RawPtrHandle fn,
316- const uint64_t key, const Row row,
316+ const uint64_t key, const Row& row,
317317 const bool is_instance,
318318 size_t append_slices,
319319 WindowInterface* window) {
@@ -326,9 +326,9 @@ hybridse::codec::Row CoreAPI::UnsafeWindowProject(
326326 hybridse::vm::ByteArrayPtr inputUnsafeRowBytes,
327327 const int inputRowSizeInBytes, const bool is_instance, size_t append_slices,
328328 WindowInterface* window) {
329- // tobe
329+
330330 // Create Row from input UnsafeRow bytes
331- auto row = Row (base::RefCountedSlice::Create (inputUnsafeRowBytes,
331+ auto row = Row (base::RefCountedSlice::CreateManaged (inputUnsafeRowBytes,
332332 inputRowSizeInBytes));
333333 return Runner::WindowProject (fn, key, row, Row (), is_instance, append_slices,
334334 window->GetWindow ());
0 commit comments