@Override public String toString() { IndexedTypeIdentifier entityClass = this.getEntityType(); if ( entityClass == null ) { return "FlushLuceneWork: global"; } else { return "FlushLuceneWork: " + entityClass.getName(); } } }
@Override public void flush(IndexedTypeSet entityTypes) { performShardAwareOperation(entityTypes, (im, type) -> { im.performStreamOperation(new FlushLuceneWork(null, type), progressMonitor, false); }); }
@Override public void flush(IndexedTypeSet entityTypes) { performShardAwareOperation(entityTypes, (im, type) -> { im.performStreamOperation(new FlushLuceneWork(null, type), progressMonitor, false); }); }
public static void flush(SearchIntegrator si, IndexedTypeIdentifier typeId) { for ( IndexManager indexManager : si.getIndexBinding( typeId ).getIndexManagerSelector().all() ) { indexManager.performStreamOperation( new FlushLuceneWork( null, typeId ), null, false ); } }
@Override public String toString() { IndexedTypeIdentifier entityClass = this.getEntityType(); if ( entityClass == null ) { return "FlushLuceneWork: global"; } else { return "FlushLuceneWork: " + entityClass.getName(); } } }
private static void assertFlush(FlushLuceneWork work, FlushLuceneWork copy) { assertThat( copy.getEntityType() ).as( "FlushLuceneWork.getEntityClass is not copied" ) .isEqualTo( work.getEntityType() ); }