A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TupleSetSpecifier.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * *
3  * Copyright 2018 Rice University *
4  * *
5  * Licensed under the Apache License, Version 2.0 (the "License"); *
6  * you may not use this file except in compliance with the License. *
7  * You may obtain a copy of the License at *
8  * *
9  * http://www.apache.org/licenses/LICENSE-2.0 *
10  * *
11  * Unless required by applicable law or agreed to in writing, software *
12  * distributed under the License is distributed on an "AS IS" BASIS, *
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
14  * See the License for the specific language governing permissions and *
15  * limitations under the License. *
16  * *
17  *****************************************************************************/
18 #ifndef TUPLESET_SPECIFIER_HEADER
19 #define TUPLESET_SPECIFIER_HEADER
20 
21 
22 namespace pdb {
23 
25 
26 public:
27  // default constructor
29  this->tupleSetName = "";
30  }
31 
32 
33  // constructor
35  std::vector<std::string> columnNamesToKeep,
36  std::vector<std::string> columnNamesToApply) {
37 
38  this->tupleSetName = tupleSetName;
39  this->columnNamesToKeep = columnNamesToKeep;
40  this->columnNamesToApply = columnNamesToApply;
41  }
42 
43  // return tuple set name
44  std::string getTupleSetName() {
45  return tupleSetName;
46  }
47 
48  // return column names to keep in the output
49 
50  std::vector<std::string> getColumnNamesToKeep() {
51  return columnNamesToKeep;
52  }
53 
54  // return column names to apply a lambda
55 
56  std::vector<std::string> getColumnNamesToApply() {
57  return columnNamesToApply;
58  }
59 
60  // set tuple set name
61  void setTupleSetName(std::string tupleSetName) {
62  this->tupleSetName = tupleSetName;
63  }
64 
65  // set column names to keep in the output
66  void setColumnsToKeep(std::vector<std::string> columnsToKeep) {
67  this->columnNamesToKeep = columnsToKeep;
68  }
69 
70  // set column names to apply
71  void setColumnsToApply(std::vector<std::string> columnsToApply) {
72  this->columnsToApply = columnsToApply;
73  }
74 
75 private:
76  // name of the the tuple set
77  std::string tupleSetName;
78 
79  // column names in the tuple set to keep in the output
80  std::vector<std::string> columnNamesToKeep;
81 
82  // column names in the tuple set to apply
83  std::vector<std::string> columnNamesToApply;
84 };
85 }
86 
87 #endif
std::vector< std::string > getColumnNamesToKeep()
std::vector< std::string > getColumnNamesToApply()
std::vector< std::string > columnNamesToApply
void setTupleSetName(std::string tupleSetName)
TupleSetSpecifier(std::string tupleSetName, std::vector< std::string > columnNamesToKeep, std::vector< std::string > columnNamesToApply)
void setColumnsToKeep(std::vector< std::string > columnsToKeep)
std::vector< std::string > columnNamesToKeep
std::string getTupleSetName()
void setColumnsToApply(std::vector< std::string > columnsToApply)