summaryrefslogtreecommitdiffstats
path: root/storagemgr/stgmddconfig.cc
diff options
context:
space:
mode:
authorAndrei Aiordachioaie <a.aiordachioaie@jacobs-university.de>2009-08-25 13:33:09 +0200
committerPeter Baumann <baumann@rasdaman.org>2009-08-27 09:38:08 +0200
commitfd66ca862d4499378719e2a635c9f97df28b763d (patch)
treee11e40b69e30b4d553cd0bcdedb435849c22e0d0 /storagemgr/stgmddconfig.cc
parentbb3139b97d956a8455649af82c0f3b705d2a8e55 (diff)
downloadrasdaman-upstream-fd66ca862d4499378719e2a635c9f97df28b763d.tar.gz
rasdaman-upstream-fd66ca862d4499378719e2a635c9f97df28b763d.tar.xz
rasdaman-upstream-fd66ca862d4499378719e2a635c9f97df28b763d.zip
Tiling & Indexing options added to rasql grammar
Diffstat (limited to 'storagemgr/stgmddconfig.cc')
-rwxr-xr-xstoragemgr/stgmddconfig.cc92
1 files changed, 92 insertions, 0 deletions
diff --git a/storagemgr/stgmddconfig.cc b/storagemgr/stgmddconfig.cc
new file mode 100755
index 0000000..c008479
--- /dev/null
+++ b/storagemgr/stgmddconfig.cc
@@ -0,0 +1,92 @@
+#include "storagemgr/stgmddconfig.hh"
+
+using namespace std;
+
+/****************************************************************************
+ *
+ *
+ * INCLUDE: stgmddconfig.hh
+ *
+ * MODULE: qlparser
+ * CLASS: StgMddConfig
+ *
+ * CHANGE HISTORY (append further entries):
+ * when who what
+ * -----------------------------------------------------------------------
+ * 17-Aug-09 aaiordachi create class (for adding rasql tiling options)
+ * COMMENTS:
+ *
+ ****************************************************************************/
+
+StgMddConfig::StgMddConfig()
+{}
+StgMddConfig::~StgMddConfig()
+{}
+
+// Setter functions
+void StgMddConfig::setBBoxes(const vector<r_Minterval>& input)
+{
+ bboxes = input;
+}
+
+void StgMddConfig::setSubTiling()
+{
+ subTiling = true;
+}
+
+void StgMddConfig::resetSubTiling()
+{
+ subTiling = false;
+}
+
+void StgMddConfig::setInterestThreshold(double i)
+{
+ interestThreshold = i;
+}
+
+void StgMddConfig::setBorderThreshold(unsigned int b)
+{
+ borderThreshold = b;
+}
+
+void StgMddConfig::setCellSize(int size)
+{
+ cellSize = size;
+}
+
+void StgMddConfig::setDirDecompose(const vector<r_Dir_Decompose>& input)
+{
+ dirDecomp = input;
+}
+
+// Getter functions
+vector<r_Minterval>& StgMddConfig::getBBoxes()
+{
+ return bboxes;
+}
+
+bool StgMddConfig::getSubTiling()
+{
+ return subTiling;
+}
+
+double StgMddConfig::getInterestThreshold()
+{
+ return interestThreshold;
+}
+
+unsigned int StgMddConfig::getBorderThreshold()
+{
+ return borderThreshold;
+}
+
+int StgMddConfig::getCellSize()
+{
+ return cellSize;
+}
+
+vector<r_Dir_Decompose>& StgMddConfig::getDirDecompose()
+{
+ return dirDecomp;
+}
+