org.hibernate.search.backend.impl
Class TransactionalSelectionVisitor
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final TransactionalSelectionVisitor INSTANCE
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