* @param luceneQueue work will be appended to this list
*/
public void enqueueLuceneWork(List<LuceneWork> luceneQueue) {
final Set<Entry<Serializable, PerEntityWork<T>>> entityInstances = entityById.entrySet();
if ( purgeAll ) {
luceneQueue.add( new PurgeAllLuceneWork( entityClass ) );
}
for ( Entry<Serializable, PerEntityWork<T>> entry : entityInstances ) {
Serializable indexingId = entry.getKey();
PerEntityWork<T> perEntityWork = entry.getValue();
perEntityWork.enqueueLuceneWork( entityClass, indexingId, documentBuilder, luceneQueue );