Turi Create  4.0
join.hpp
1 /* Copyright © 2017 Apple Inc. All rights reserved.
2  *
3  * Use of this source code is governed by a BSD-3-clause license that can
4  * be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5  */
6 #include <string>
7 #include <vector>
8 #include <cstdio>
9 #include <boost/algorithm/string.hpp>
10 #include <core/storage/sframe_data/sframe_constants.hpp>
11 #include <core/storage/sframe_data/sframe.hpp>
12 #include <core/storage/sframe_data/join_impl.hpp>
13 
14 namespace turi {
15 
16 /**
17  * \ingroup sframe_physical
18  * \addtogroup Join Join
19  *
20  * Joins two SFrames.
21  *
22  * \param sf_left Left side of the join
23  * \param sfr_right Right side of the join
24  * \param join_type Either "inner", "left", "right" or "outer"
25  * \param join_columns A map of columns to equijoin on.
26  * \param max_buffer_size The maximum number of cells to buffer in memory.
27  */
28 sframe join(sframe& sf_left,
29  sframe& sf_right,
30  std::string join_type,
31  const std::map<std::string, std::string>& join_columns,
32  const std::map<std::string, std::string>& alternative_names,
33  size_t max_buffer_size = SFRAME_JOIN_BUFFER_NUM_CELLS);
34 
35 } // end of turicreate
size_t SFRAME_JOIN_BUFFER_NUM_CELLS