Ejemplo n.º 1
0
 public void flush() {
   switch (mode) {
     case StreamListener.STORE:
       engine.flush();
       break;
     case StreamListener.REMOVE_ALL_NODES:
       engine.dropIndex(document);
       break;
     case StreamListener.REMOVE_SOME_NODES:
       engine.remove();
       break;
   }
 }
Ejemplo n.º 2
0
 public void setDocument(DocumentImpl doc, int newMode) {
   document = doc;
   mode = newMode;
   IndexSpec indexConf = document.getCollection().getIndexConfiguration(document.getBroker());
   if (indexConf != null) config = indexConf.getFulltextIndexSpec();
   engine.setDocument(document);
 }
Ejemplo n.º 3
0
 public void removeCollection(Collection collection, DBBroker broker) {
   engine.dropIndex(collection);
 }