66//
77// Identification: src/include/storage/layout.h
88//
9- // Copyright (c) 2015-18 , Carnegie Mellon University Database Group
9+ // Copyright (c) 2015-2018 , Carnegie Mellon University Database Group
1010//
1111// ===----------------------------------------------------------------------===//
1212
@@ -27,10 +27,15 @@ namespace peloton {
2727
2828namespace catalog {
2929class Schema ;
30- }
30+ } // namespace catalog
3131
3232namespace storage {
3333
34+ /* * @brief used to store the mapping between a tile and its columns
35+ * <tile index> to vector{<original column index, tile column offset>}
36+ */
37+ typedef std::map<oid_t , std::vector<std::pair<oid_t , oid_t >>> tile_map_type;
38+
3439/* *
3540 * @brief Class to store the physical layout of a TileGroup.
3641 */
@@ -62,12 +67,10 @@ class Layout : public Printable {
6267 Layout (const column_map_type &column_map, oid_t layout_oid);
6368
6469 /* * @brief Check whether this layout is a row store. */
65- inline bool IsRowStore () const { return (layout_type_ == LayoutType::ROW); }
70+ bool IsRowStore () const { return (layout_type_ == LayoutType::ROW); }
6671
6772 /* * @brief Check whether this layout is a column store. */
68- inline bool IsColumnStore () const {
69- return (layout_type_ == LayoutType::COLUMN);
70- }
73+ bool IsColumnStore () const { return (layout_type_ == LayoutType::COLUMN); }
7174
7275 /* * @brief Return the layout_oid_ of this object. */
7376 oid_t GetOid () const { return layout_oid_; }
0 commit comments