~juan457/+junk/zorba

« back to all changes in this revision

Viewing changes to src/store/naive/simple_index_value.h

  • Committer: Tarmac
  • Author(s): Markos Zaharioudakis
  • Date: 2012-07-12 17:29:55 UTC
  • mfrom: (10870.4.9 index-maintenance)
  • Revision ID: tarmac-20120712172955-zju6u2p3v102mg43
Incremental maintenance for general indexes. Approved: Markos Zaharioudakis

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
 
44
44
  ~ValueIndexCompareFunction();
45
45
 
46
 
  const XQPCollator* getCollator(ulong i) const { return theCollators[i]; }
 
46
  const XQPCollator* getCollator(csize i) const { return theCollators[i]; }
47
47
 
48
48
  uint32_t hash(const store::IndexKey* key) const;
49
49
 
64
64
class ValueIndexValue : public store::ItemVector
65
65
{
66
66
public:
67
 
  ValueIndexValue(ulong size = 0) : store::ItemVector(size) {}
 
67
  ValueIndexValue(csize size = 0) : store::ItemVector(size) {}
68
68
};
69
69
 
70
70
 
86
86
  virtual ~ValueIndex();
87
87
 
88
88
public:
89
 
  const XQPCollator* getCollator(ulong i) const;
 
89
  const XQPCollator* getCollator(csize i) const;
90
90
 
91
91
  virtual bool isTreeIndex() = 0;
92
92
 
93
93
  virtual bool insert(store::IndexKey*& key, store::Item_t& item) = 0;
94
94
 
95
95
  virtual bool remove(
96
 
        const store::IndexKey* key,
97
 
        const store::Item_t& item,
98
 
        bool all = false) = 0;
 
96
      const store::IndexKey* key,
 
97
      const store::Item_t& node,
 
98
      bool all) = 0;
99
99
};
100
100
 
101
101
 
148
148
 
149
149
  void clear();
150
150
 
151
 
  ulong size() const;
 
151
  csize size() const;
152
152
 
153
153
  Index::KeyIterator_t keys() const;
154
154
 
237
237
 
238
238
  void clear();
239
239
 
240
 
  ulong size() const;
 
240
  csize size() const;
241
241
 
242
242
  Index::KeyIterator_t keys() const;
243
243
 
244
244
  bool insert(store::IndexKey*& key, store::Item_t& item);
245
245
 
246
 
  bool remove(const store::IndexKey* key, const store::Item_t& item, bool all = false);
 
246
  bool remove(const store::IndexKey* key, const store::Item_t& item, bool all);
247
247
};
248
248
 
249
249