13struct TableFuncBindData;
14struct TableFuncBindInput;
19 template<
class TARGET>
28 template<
class TARGET>
54 std::vector<common::ValueVector*>
vectors;
87 :
Function{}, tableFunc{nullptr}, bindFunc{nullptr}, initSharedStateFunc{nullptr},
88 initLocalStateFunc{nullptr} {};
91 std::vector<common::LogicalTypeID> inputTypes)
92 :
Function{std::move(name), std::move(inputTypes)}, tableFunc{tableFunc},
93 bindFunc{bindFunc}, initSharedStateFunc{initSharedFunc},
94 initLocalStateFunc{initLocalFunc} {}
98 :
Function{std::move(name), std::move(inputTypes)}, tableFunc{tableFunc},
99 bindFunc{bindFunc}, initSharedStateFunc{initSharedFunc},
100 initLocalStateFunc{initLocalFunc}, progressFunc{progressFunc} {}
103 return common::LogicalTypeUtils::toString(parameterTypeIDs);
106 std::unique_ptr<Function>
copy()
const override {
107 return std::make_unique<TableFunction>(*
this);
#define KUZU_API
Definition api.h:25
Definition data_chunk.h:20
Contain client side configuration. We make profiler associated per query, so profiler is not maintain...
Definition client_context.h:51
TO ku_dynamic_cast(FROM old)
Definition cast.h:11
uint64_t offset_t
Definition internal_id_t.h:22
std::function< std::unique_ptr< TableFuncBindData >(main::ClientContext *, function::TableFuncBindInput *)> table_func_bind_t
Definition table_functions.h:68
std::function< std::unique_ptr< TableFuncSharedState >(TableFunctionInitInput &)> table_func_init_shared_t
Definition table_functions.h:71
std::function< bool()> table_func_can_parallel_t
Definition table_functions.h:75
std::function< std::unique_ptr< TableFuncLocalState >( TableFunctionInitInput &, TableFuncSharedState *, storage::MemoryManager *)> table_func_init_local_t
Definition table_functions.h:73
std::function< common::offset_t(TableFuncInput &, TableFuncOutput &)> table_func_t
Definition table_functions.h:70
std::function< double(TableFuncSharedState *sharedState)> table_func_progress_t
Definition table_functions.h:76
Definition alter_type.h:5
Definition table_functions.h:25
virtual ~TableFuncLocalState()=default
TARGET * ptrCast()
Definition table_functions.h:29
Definition table_functions.h:52
common::DataChunk dataChunk
Definition table_functions.h:53
DELETE_COPY_DEFAULT_MOVE(TableFuncOutput)
std::vector< common::ValueVector * > vectors
Definition table_functions.h:54
TableFuncOutput()=default
Definition table_functions.h:16
TARGET * ptrCast()
Definition table_functions.h:20
virtual ~TableFuncSharedState()=default
Definition table_functions.h:78
std::unique_ptr< Function > copy() const override
Definition table_functions.h:106
table_func_bind_t bindFunc
Definition table_functions.h:80
TableFunction()
Definition table_functions.h:86
table_func_init_local_t initLocalStateFunc
Definition table_functions.h:82
TableFunction(std::string name, table_func_t tableFunc, table_func_bind_t bindFunc, table_func_init_shared_t initSharedFunc, table_func_init_local_t initLocalFunc, std::vector< common::LogicalTypeID > inputTypes)
Definition table_functions.h:89
table_func_t tableFunc
Definition table_functions.h:79
TableFunction(std::string name, table_func_t tableFunc, table_func_bind_t bindFunc, table_func_init_shared_t initSharedFunc, table_func_init_local_t initLocalFunc, table_func_progress_t progressFunc, std::vector< common::LogicalTypeID > inputTypes)
Definition table_functions.h:95
std::string signatureToString() const override
Definition table_functions.h:102
table_func_init_shared_t initSharedStateFunc
Definition table_functions.h:81