~zorba-coders/zorba/bugs-1022495-and-1022494

« back to all changes in this revision

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

  • Committer: chillery+launchpad at lambda
  • Date: 2012-09-12 00:14:08 UTC
  • mfrom: (10923.1.111 zorba)
  • Revision ID: chillery+launchpad@lambda.nu-20120912001408-r0hxvjukenfzpjrk
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "shared_types.h"
22
22
 
23
23
#include "store/api/pul.h"
24
 
#include "store/api/index.h"
 
24
#include "simple_index.h"
25
25
 
26
26
#include "zorbautils/hashfun.h"
27
27
#include "zorbautils/hashmap.h"
202
202
 
203
203
  std::vector<IndexEntryCreator_t>   theIndexEntryCreators;
204
204
 
205
 
  std::vector<store::IndexDelta>     theBeforeIndexDeltas;
206
 
  std::vector<store::IndexDelta>     theAfterIndexDeltas;
207
 
  std::vector<store::IndexDelta>     theInsertedDocsIndexDeltas;
208
 
  std::vector<store::IndexDelta>     theDeletedDocsIndexDeltas;
 
205
  std::vector<IndexDeltaImpl>        theBeforeIndexDeltas;
 
206
  std::vector<IndexDeltaImpl>        theAfterIndexDeltas;
 
207
  std::vector<IndexDeltaImpl>        theInsertedDocsIndexDeltas;
 
208
  std::vector<IndexDeltaImpl>        theDeletedDocsIndexDeltas;
209
209
 
210
210
#ifdef ZORBA_WITH_JSON
211
211
  // jsoniq primitives
251
251
protected:
252
252
  void switchPulInPrimitivesList(std::vector<UpdatePrimitive*>& list);
253
253
 
254
 
  void computeIndexDeltas(std::vector<store::IndexDelta>& deltas);
 
254
  void computeIndexDeltas(std::vector<IndexDeltaImpl>& deltas);
255
255
 
256
256
  void cleanIndexDeltas();
257
257
 
 
258
  void refreshValueIndex(csize idx);
 
259
 
 
260
  void refreshGeneralIndex(csize idx);
 
261
 
 
262
  void undoValueIndexRefresh(csize idx);
 
263
 
 
264
  void undoGeneralIndexRefresh(csize idx);
 
265
 
258
266
  void truncateIndexes();
259
267
 
260
268
  void undoRefreshIndexes();