Kùzu C++ API
Loading...
Searching...
No Matches
cast_function_bind_data.h
Go to the documentation of this file.
1#pragma once
2
3#include "csv_reader_config.h"
4#include "function.h"
5
6namespace kuzu {
7namespace function {
8
10 // We don't allow configuring delimiters, ... in CAST function.
11 // For performance purpose, we generate a default option object during binding time.
13 // TODO(Mahn): the following field should be removed once we refactor fixed list.
14 uint64_t numOfEntries;
15
17 : FunctionBindData{std::move(dataType)} {}
18
19 inline std::unique_ptr<FunctionBindData> copy() const override {
20 auto result = std::make_unique<CastFunctionBindData>(resultType.copy());
21 result->numOfEntries = numOfEntries;
22 result->option = option.copy();
23 return result;
24 }
25};
26
27} // namespace function
28} // namespace kuzu
Definition types.h:201
static KUZU_API std::vector< LogicalType > copy(const std::vector< LogicalType > &types)
Definition alter_type.h:5
Definition csv_reader_config.h:10
Definition cast_function_bind_data.h:9
std::unique_ptr< FunctionBindData > copy() const override
Definition cast_function_bind_data.h:19
CastFunctionBindData(common::LogicalType dataType)
Definition cast_function_bind_data.h:16
common::CSVOption option
Definition cast_function_bind_data.h:12
uint64_t numOfEntries
Definition cast_function_bind_data.h:14
Definition function.h:14
common::LogicalType resultType
Definition function.h:16