org.infinispan.query.backend
Class LocalQueryInterceptor

java.lang.Object
  extended by org.infinispan.commands.AbstractVisitor
      extended by org.infinispan.interceptors.base.CommandInterceptor
          extended by org.infinispan.query.backend.QueryInterceptor
              extended by org.infinispan.query.backend.LocalQueryInterceptor
All Implemented Interfaces:
Visitor

public class LocalQueryInterceptor
extends QueryInterceptor

This class is an interceptor that will index data only if it has come from a local source.

Currently, this is a property that is determined by setting "infinispan.query.indexLocalOnly" as a System property to "true".

Since:
4.0
Author:
Navin Surtani

Field Summary
 
Fields inherited from class org.infinispan.query.backend.QueryInterceptor
searchFactory, transactionManager
 
Fields inherited from class org.infinispan.interceptors.base.CommandInterceptor
configuration, log, trace
 
Constructor Summary
LocalQueryInterceptor()
           
 
Method Summary
 void init(org.hibernate.search.engine.SearchFactoryImplementor searchFactory, TransactionManager transactionManager)
           
 Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command)
           
 Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command)
           
 Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command)
           
 Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command)
           
 
Methods inherited from class org.infinispan.query.backend.QueryInterceptor
addToIndexes, removeFromIndexes
 
Methods inherited from class org.infinispan.interceptors.base.CommandInterceptor
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext
 
Methods inherited from class org.infinispan.commands.AbstractVisitor
visitClearCommand, visitCollection, visitCommitCommand, visitEntrySetCommand, visitEvictCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitRollbackCommand, visitSizeCommand, visitValuesCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalQueryInterceptor

public LocalQueryInterceptor()
Method Detail

init

public void init(org.hibernate.search.engine.SearchFactoryImplementor searchFactory,
                 TransactionManager transactionManager)
Overrides:
init in class QueryInterceptor

visitPutKeyValueCommand

public Object visitPutKeyValueCommand(InvocationContext ctx,
                                      PutKeyValueCommand command)
                               throws Throwable
Specified by:
visitPutKeyValueCommand in interface Visitor
Overrides:
visitPutKeyValueCommand in class QueryInterceptor
Throws:
Throwable

visitRemoveCommand

public Object visitRemoveCommand(InvocationContext ctx,
                                 RemoveCommand command)
                          throws Throwable
Specified by:
visitRemoveCommand in interface Visitor
Overrides:
visitRemoveCommand in class QueryInterceptor
Throws:
Throwable

visitReplaceCommand

public Object visitReplaceCommand(InvocationContext ctx,
                                  ReplaceCommand command)
                           throws Throwable
Specified by:
visitReplaceCommand in interface Visitor
Overrides:
visitReplaceCommand in class QueryInterceptor
Throws:
Throwable

visitPutMapCommand

public Object visitPutMapCommand(InvocationContext ctx,
                                 PutMapCommand command)
                          throws Throwable
Specified by:
visitPutMapCommand in interface Visitor
Overrides:
visitPutMapCommand in class QueryInterceptor
Throws:
Throwable

Google Analytics

Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.