-
Notifications
You must be signed in to change notification settings - Fork 321
Expand file tree
/
Copy pathunity_sframe_interface.hpp
More file actions
79 lines (76 loc) · 4.33 KB
/
unity_sframe_interface.hpp
File metadata and controls
79 lines (76 loc) · 4.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/**
* Copyright (C) 2016 Turi
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#ifndef GRAPHLAB_UNITY_SFRAME_INTERFACE_HPP
#define GRAPHLAB_UNITY_SFRAME_INTERFACE_HPP
#include <memory>
#include <vector>
#include <string>
#include <flexible_type/flexible_type.hpp>
#include <sframe/dataframe.hpp>
#include <unity/lib/options_map.hpp>
#include <cppipc/magic_macros.hpp>
#include <unity/lib/api/unity_sarray_interface.hpp>
namespace graphlab {
class unity_sframe_base;
typedef std::map<std::string, flex_type_enum> str_flex_type_map;
typedef std::map<std::string, flexible_type> csv_parsing_config_map;
typedef std::map<std::string, std::string> string_map;
typedef std::map<std::string, std::shared_ptr<unity_sarray_base>> csv_parsing_errors;
GENERATE_INTERFACE_AND_PROXY_NO_INLINE_DESTRUCTOR(unity_sframe_base, unity_sframe_proxy,
(void, construct_from_dataframe, (const dataframe_t&))
(void, construct_from_sframe_index, (std::string))
(csv_parsing_errors, construct_from_csvs, (std::string)(csv_parsing_config_map)(str_flex_type_map))
(void, clear, )
(size_t, size, )
(std::shared_ptr<unity_sarray_base>, transform, (const std::string&)(flex_type_enum)(bool)(int))
(std::shared_ptr<unity_sarray_base>, transform_native, (const function_closure_info&)(flex_type_enum)(bool)(int))
(std::shared_ptr<unity_sframe_base>, flat_map, (const std::string&)(std::vector<std::string>)
(std::vector<flex_type_enum>)(bool)(int))
(void, save_frame, (std::string) )
(void, save_frame_reference, (std::string) )
(size_t, num_columns, )
(std::vector<flex_type_enum>, dtype, )
(std::vector<std::string>, column_names, )
(size_t, column_index, (const std::string &))
(std::shared_ptr<unity_sframe_base>, head, (size_t))
(std::shared_ptr<unity_sframe_base>, tail, (size_t))
(dataframe_t, _head, (size_t))
(dataframe_t, _tail, (size_t))
(std::shared_ptr<unity_sframe_base>, logical_filter, (std::shared_ptr<unity_sarray_base>))
(std::shared_ptr<unity_sframe_base>, select_columns, (const std::vector<std::string>&))
(std::shared_ptr<unity_sarray_base>, select_column, (const std::string&))
(void, add_column, (std::shared_ptr<unity_sarray_base >)(const std::string&))
(void, add_columns, (std::list<std::shared_ptr<unity_sarray_base >>)(std::vector<std::string>))
(void, set_column_name, (size_t)(std::string))
(void, remove_column, (size_t))
(void, swap_columns, (size_t)(size_t))
(void, begin_iterator, )
(std::vector<std::vector<flexible_type>>, iterator_get_next, (size_t))
(void, save_as_csv, (const std::string&)(csv_parsing_config_map))
(std::shared_ptr<unity_sframe_base>, sample, (float)(int))
(std::list<std::shared_ptr<unity_sframe_base>>, random_split, (float)(int))
(std::shared_ptr<unity_sframe_base>, groupby_aggregate, (const std::vector<std::string>&)
(const std::vector<std::vector<std::string>>&)
(const std::vector<std::string>&)
(const std::vector<std::string>&))
(std::shared_ptr<unity_sframe_base>, append, (std::shared_ptr<unity_sframe_base>))
(void, materialize, )
(bool, is_materialized, )
(bool, has_size, )
(std::string, query_plan_string, )
(std::shared_ptr<unity_sframe_base>, join, (std::shared_ptr<unity_sframe_base>)(const std::string)(string_map))
(std::shared_ptr<unity_sframe_base>, sort, (const std::vector<std::string>&)(const std::vector<int>&))
(std::shared_ptr<unity_sarray_base>, pack_columns, (const std::vector<std::string>&)(const std::vector<std::string>&)(flex_type_enum)(const flexible_type&))
(std::shared_ptr<unity_sframe_base>, stack, (const std::string&)(const std::vector<std::string>&)(const std::vector<flex_type_enum>&)(bool))
(std::shared_ptr<unity_sframe_base>, copy_range, (size_t)(size_t)(size_t))
(std::list<std::shared_ptr<unity_sframe_base>>, drop_missing_values, (const std::vector<std::string>&)(bool)(bool))
(dataframe_t, to_dataframe, )
(void, delete_on_close, )
)
} // namespace graphlab
#endif // GRAPHLAB_UNITY_SFRAME_INTERFACE_HPP