コード例 #1
0
 protected void updateIndexes(
     final boolean usingSkipIndexCleanupFlag,
     final Object value,
     final Object key,
     final TransactionContext transactionContext) {
   // Note: it's generally unsafe to assume there is no previous entry to cleanup: always use
   // UPDATE
   // unless the specific flag is allowing this.
   performSearchWork(
       value,
       keyToString(key),
       usingSkipIndexCleanupFlag ? WorkType.ADD : WorkType.UPDATE,
       transactionContext);
 }
コード例 #2
0
 // Method that will be called when data needs to be removed from Lucene.
 protected void removeFromIndexes(
     final Object value, final Object key, final TransactionContext transactionContext) {
   performSearchWork(value, keyToString(key), WorkType.DELETE, transactionContext);
 }