Turi Create  4.0
sframe_config.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 #ifndef TURI_SFRAME_CONFIG_HPP
7 #define TURI_SFRAME_CONFIG_HPP
8 #include <cstddef>
9 namespace turi {
10 
11 
12 /**
13  * \ingroup sframe_physical
14  * \addtogroup sframe_main Main SFrame Objects
15  * \{
16  */
17 
18 /**
19 ** Global configuration for sframe, keep them as non-constants because we want to
20 ** allow user/server to change the configuration according to the environment
21 **/
22 namespace sframe_config {
23  /**
24  ** The max buffer size to keep for sorting in memory
25  **/
26  extern size_t SFRAME_SORT_BUFFER_SIZE;
27 
28  /**
29  ** The number of rows to read each time for paralleliterator
30  **/
31  extern size_t SFRAME_READ_BATCH_SIZE;
32 }
33 
34 /// \}
35 }
36 #endif //TURI_SFRAME_CONFIG_HPP
size_t SFRAME_READ_BATCH_SIZE
size_t SFRAME_SORT_BUFFER_SIZE