server/sources/__init__.py
branchstable
changeset 4807 5642bfa43236
parent 4252 6c4f109c2b03
child 4913 083b4d454192
equal deleted inserted replaced
4806:4f12f59b1a13 4807:5642bfa43236
   380         """delete system information on deletion of an entity by transfering
   380         """delete system information on deletion of an entity by transfering
   381         record from the entities table to the deleted_entities table
   381         record from the entities table to the deleted_entities table
   382         """
   382         """
   383         raise NotImplementedError()
   383         raise NotImplementedError()
   384 
   384 
   385     def fti_unindex_entity(self, session, eid):
       
   386         """remove text content for entity with the given eid from the full text
       
   387         index
       
   388         """
       
   389         raise NotImplementedError()
       
   390 
       
   391     def fti_index_entity(self, session, entity):
       
   392         """add text content of a created/modified entity to the full text index
       
   393         """
       
   394         raise NotImplementedError()
       
   395 
       
   396     def modified_entities(self, session, etypes, mtime):
   385     def modified_entities(self, session, etypes, mtime):
   397         """return a 2-uple:
   386         """return a 2-uple:
   398         * list of (etype, eid) of entities of the given types which have been
   387         * list of (etype, eid) of entities of the given types which have been
   399           modified since the given timestamp (actually entities whose full text
   388           modified since the given timestamp (actually entities whose full text
   400           index content has changed)
   389           index content has changed)
   401         * list of (etype, eid) of entities of the given types which have been
   390         * list of (etype, eid) of entities of the given types which have been
   402           deleted since the given timestamp
   391           deleted since the given timestamp
       
   392         """
       
   393         raise NotImplementedError()
       
   394 
       
   395     def index_entity(self, session, entity):
       
   396         """create an operation to [re]index textual content of the given entity
       
   397         on commit
       
   398         """
       
   399         raise NotImplementedError()
       
   400 
       
   401     def fti_unindex_entity(self, session, eid):
       
   402         """remove text content for entity with the given eid from the full text
       
   403         index
       
   404         """
       
   405         raise NotImplementedError()
       
   406 
       
   407     def fti_index_entity(self, session, entity):
       
   408         """add text content of a created/modified entity to the full text index
   403         """
   409         """
   404         raise NotImplementedError()
   410         raise NotImplementedError()
   405 
   411 
   406     # sql system source interface #############################################
   412     # sql system source interface #############################################
   407 
   413