/** * batch indexing has been interrupted : flush to apply all index update realized before interruption * * @param backend */ private void afterBatchOnInterruption(BatchBackend backend) { IndexedTypeSet targetedClasses = extendedIntegrator.getIndexedTypesPolymorphic( rootEntities ); backend.flush( targetedClasses ); }
/** * Operations to do after all subthreads finished their work on index * @param backend */ private void afterBatch(BatchBackend backend) { IndexedTypeSet targetedClasses = extendedIntegrator.getIndexedTypesPolymorphic( rootEntities ); if ( this.optimizeAtEnd ) { backend.optimize( targetedClasses ); } backend.flush( targetedClasses ); }
/** * Operations to do after all subthreads finished their work on index * * @param backend */ private void afterBatch(BatchBackend backend) { IndexedTypeSet targetedTypes = searchFactoryImplementor.getIndexedTypesPolymorphic( rootIndexedTypes ); if ( this.optimizeAtEnd ) { backend.optimize( targetedTypes ); } backend.flush( targetedTypes ); }
private void flush(Class<?> clazz) { sfHolder.getBatchBackend().flush( IndexedTypeSets.fromClass( clazz ) ); }