org.hibernate.search.backend.impl
Class TransactionalSelectionVisitor

java.lang.Object
  extended by org.hibernate.search.backend.impl.TransactionalSelectionVisitor
All Implemented Interfaces:
WorkVisitor<ContextAwareSelectionDelegate>

public class TransactionalSelectionVisitor
extends Object
implements WorkVisitor<ContextAwareSelectionDelegate>

This visitor applies the selection logic from the plugged IndexShardingStrategies to transactional operations, so similar to StreamingSelectionVisitor but preparing a context bound list of operations instead of sending all changes directly to the backend.

Author:
Sanne Grinovero (C) 2011 Red Hat Inc.

Field Summary
static TransactionalSelectionVisitor INSTANCE
           
 
Method Summary
 ContextAwareSelectionDelegate getDelegate(AddLuceneWork addLuceneWork)
           
 ContextAwareSelectionDelegate getDelegate(DeleteLuceneWork deleteLuceneWork)
           
 ContextAwareSelectionDelegate getDelegate(FlushLuceneWork flushLuceneWork)
           
 ContextAwareSelectionDelegate getDelegate(OptimizeLuceneWork optimizeLuceneWork)
           
 ContextAwareSelectionDelegate getDelegate(PurgeAllLuceneWork purgeAllLuceneWork)
           
 ContextAwareSelectionDelegate getDelegate(UpdateLuceneWork addLuceneWork)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final TransactionalSelectionVisitor INSTANCE
Method Detail

getDelegate

public ContextAwareSelectionDelegate getDelegate(AddLuceneWork addLuceneWork)
Specified by:
getDelegate in interface WorkVisitor<ContextAwareSelectionDelegate>

getDelegate

public ContextAwareSelectionDelegate getDelegate(UpdateLuceneWork addLuceneWork)
Specified by:
getDelegate in interface WorkVisitor<ContextAwareSelectionDelegate>

getDelegate

public ContextAwareSelectionDelegate getDelegate(DeleteLuceneWork deleteLuceneWork)
Specified by:
getDelegate in interface WorkVisitor<ContextAwareSelectionDelegate>

getDelegate

public ContextAwareSelectionDelegate getDelegate(OptimizeLuceneWork optimizeLuceneWork)
Specified by:
getDelegate in interface WorkVisitor<ContextAwareSelectionDelegate>

getDelegate

public ContextAwareSelectionDelegate getDelegate(PurgeAllLuceneWork purgeAllLuceneWork)
Specified by:
getDelegate in interface WorkVisitor<ContextAwareSelectionDelegate>

getDelegate

public ContextAwareSelectionDelegate getDelegate(FlushLuceneWork flushLuceneWork)
Specified by:
getDelegate in interface WorkVisitor<ContextAwareSelectionDelegate>


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved