6 #ifndef TURI_UNITY_INDEXED_SFRAME_TOOLS_H_ 7 #define TURI_UNITY_INDEXED_SFRAME_TOOLS_H_ 16 template <
typename T>
class sarray;
25 std::vector<size_t>
get_unique_values(std::shared_ptr<sarray<flexible_type> > indexed_column);
32 std::shared_ptr<sarray<flexible_type> >
make_unique(std::shared_ptr<sarray<flexible_type> > indexed_column);
63 const std::vector<size_t>&
dest_group(
size_t src_value)
const;
66 std::vector<size_t> empty_vector;
67 std::map<size_t, std::vector<size_t> > group_lookup;
std::shared_ptr< sframe > sort(std::shared_ptr< planner_node > sframe_planner_node, const std::vector< std::string > column_names, const std::vector< size_t > &sort_column_indices, const std::vector< bool > &sort_orders)
indexed_column_groupby(std::shared_ptr< sarray< flexible_type > > src_column, std::shared_ptr< sarray< flexible_type > > dest_column, bool sort, bool uniquify)
const std::vector< size_t > & dest_group(size_t src_value) const