-
Notifications
You must be signed in to change notification settings - Fork 0
/
IndexerL.h
44 lines (32 loc) · 1.12 KB
/
IndexerL.h
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
#ifndef _INDEXERL_H
#define _INDEXERL_H
#include <map>
#include <vector>
#include <string>
#include <set>
#include "Indexer.h"
using namespace std;
// This class is responsible for finding tiles given the query
// Assume fixed logical tiles
class IndexerL: public virtual Indexer {
public:
set<string> *tileidset;
// Constructor
IndexerL(int nDim, vector<int64_t> ranges, int nAttr, int pstride, string arraydir);
// Destructor
~IndexerL();
// Returns all tile ids tha fall in subranges
vector<string> * getTilesByDimSubRange(vector<int64_t> * subranges);
// Returns all whole tiles ids that fall completely within subranges
vector<string> * getWholeTilesByDimSubRange(vector<int64_t> * subranges);
// Returns all tile ids that partially overlap with subranges
vector<string> * getPartialTilesByDimSubRange(vector<int64_t> * subranges);
private:
int stride;
// Populates tileids
vector<string> * generateTileIds();
// Checks if filename exists
bool fileExists(string filename);
vector<string> * combination(map<int, vector<int>> * tileIDMaps);
};
#endif