OmniSciDB  16c4e035a1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UtilityTableFunctions.h
Go to the documentation of this file.
1 /*
2  * Copyright 2021 OmniSci, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
20 
21 #ifndef __CUDACC__
22 
24 int32_t generate_series_parallel(const int64_t start,
25  const int64_t stop,
26  const int64_t step,
27  Column<int64_t>& series_output);
28 // clang-format off
29 /*
30  UDTF: generate_series__cpu_1(TableFunctionManager, int64_t start, int64_t stop, int64_t step | require="step != 0") -> Column<int64_t> generate_series
31  UDTF: generate_series__cpu_2(TableFunctionManager, int64_t start, int64_t stop) -> Column<int64_t> generate_series
32 */
33 // clang-format on
34 
37  const int64_t start,
38  const int64_t stop,
39  const int64_t step,
40  Column<int64_t>& series_output);
41 
44  const int64_t start,
45  const int64_t stop,
46  Column<int64_t>& series_output);
47 
48 #endif // __CUDACC__
EXTENSION_NOINLINE int32_t generate_series_parallel(const int64_t start, const int64_t stop, const int64_t step, Column< int64_t > &series_output)
#define EXTENSION_NOINLINE
Definition: OmniSciTypes.h:34
EXTENSION_NOINLINE int32_t generate_series__cpu_1(TableFunctionManager &mgr, const int64_t start, const int64_t stop, const int64_t step, Column< int64_t > &series_output)
EXTENSION_NOINLINE int32_t generate_series__cpu_2(TableFunctionManager &mgr, const int64_t start, const int64_t stop, Column< int64_t > &series_output)