Kùzu C++ API
Loading...
Searching...
No Matches
bind_input.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <vector>
4
5
#include "
reader_config.h
"
6
#include "
value.h
"
7
8
namespace
kuzu
{
9
namespace
main {
10
class
ClientContext
;
11
}
12
13
namespace
function {
14
15
struct
TableFunction;
16
struct
ScanTableFuncBindInput
{
17
std::vector<common::Value>
inputs
;
18
common::ReaderConfig
config
;
19
std::vector<std::string>
expectedColumnNames
;
20
std::vector<common::LogicalType>
expectedColumnTypes
;
21
main::ClientContext
*
context
;
22
function::TableFunction
*
tableFunction
;
23
24
ScanTableFuncBindInput
() :
context
(nullptr),
tableFunction
(nullptr) {}
25
explicit
ScanTableFuncBindInput
(
common::ReaderConfig
config
)
26
:
config
{std::move(
config
)},
context
(nullptr),
tableFunction
(nullptr){};
27
ScanTableFuncBindInput
(
common::ReaderConfig
config
,
28
std::vector<std::string>
expectedColumnNames
,
29
std::vector<common::LogicalType>
expectedColumnTypes
,
main::ClientContext
*
context
,
30
function::TableFunction
*
tableFunction
)
31
:
config
{std::move(
config
)},
expectedColumnNames
{std::move(
expectedColumnNames
)},
32
expectedColumnTypes
{std::move(
expectedColumnTypes
)},
context
{
context
},
33
tableFunction
{
tableFunction
} {
34
inputs
.push_back(
common::Value::createValue
(this->config.
filePaths
[0]));
35
}
36
EXPLICIT_COPY_DEFAULT_MOVE
(
ScanTableFuncBindInput
);
37
38
private
:
39
ScanTableFuncBindInput
(
const
ScanTableFuncBindInput
& other)
40
:
inputs
{other.
inputs
},
config
{other.
config
.copy()},
41
expectedColumnNames
{other.
expectedColumnNames
},
42
expectedColumnTypes
{common::LogicalType::copy(other.
expectedColumnTypes
)},
43
context
{other.
context
},
tableFunction
{other.
tableFunction
} {}
44
};
45
46
}
// namespace function
47
}
// namespace kuzu
kuzu::common::Value::createValue
static Value createValue(T)
Definition
value.h:222
kuzu::main::ClientContext
Contain client side configuration. We make profiler associated per query, so profiler is not maintain...
Definition
client_context.h:57
kuzu
Definition
array_utils.h:7
reader_config.h
kuzu::common::ReaderConfig
Definition
reader_config.h:33
kuzu::common::ReaderConfig::filePaths
std::vector< std::string > filePaths
Definition
reader_config.h:35
kuzu::function::ScanTableFuncBindInput
Definition
bind_input.h:16
kuzu::function::ScanTableFuncBindInput::EXPLICIT_COPY_DEFAULT_MOVE
EXPLICIT_COPY_DEFAULT_MOVE(ScanTableFuncBindInput)
kuzu::function::ScanTableFuncBindInput::config
common::ReaderConfig config
Definition
bind_input.h:18
kuzu::function::ScanTableFuncBindInput::inputs
std::vector< common::Value > inputs
Definition
bind_input.h:17
kuzu::function::ScanTableFuncBindInput::ScanTableFuncBindInput
ScanTableFuncBindInput(common::ReaderConfig config)
Definition
bind_input.h:25
kuzu::function::ScanTableFuncBindInput::tableFunction
function::TableFunction * tableFunction
Definition
bind_input.h:22
kuzu::function::ScanTableFuncBindInput::context
main::ClientContext * context
Definition
bind_input.h:21
kuzu::function::ScanTableFuncBindInput::expectedColumnNames
std::vector< std::string > expectedColumnNames
Definition
bind_input.h:19
kuzu::function::ScanTableFuncBindInput::ScanTableFuncBindInput
ScanTableFuncBindInput()
Definition
bind_input.h:24
kuzu::function::ScanTableFuncBindInput::ScanTableFuncBindInput
ScanTableFuncBindInput(common::ReaderConfig config, std::vector< std::string > expectedColumnNames, std::vector< common::LogicalType > expectedColumnTypes, main::ClientContext *context, function::TableFunction *tableFunction)
Definition
bind_input.h:27
kuzu::function::ScanTableFuncBindInput::expectedColumnTypes
std::vector< common::LogicalType > expectedColumnTypes
Definition
bind_input.h:20
kuzu::function::TableFunction
Definition
table_functions.h:89
value.h
headers
bind_input.h
Generated by
1.12.0