org.apache.blur.manager
Class DefaultBlurFilterCache

java.lang.Object
  extended by org.apache.blur.manager.BlurFilterCache
      extended by org.apache.blur.manager.DefaultBlurFilterCache

public class DefaultBlurFilterCache
extends BlurFilterCache

This implementation on BlurFilterCache does nothing and it is the default BlurFilterCache.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.blur.manager.BlurFilterCache
BlurFilterCache.FilterParser
 
Constructor Summary
DefaultBlurFilterCache(BlurConfiguration configuration)
           
 
Method Summary
 void closing(String table, String shard, BlurIndex index)
          Notifies the cache that the index is closing on this shard server.
 org.apache.lucene.search.Filter fetchPostFilter(String table, String filterStr)
          The fetchPostFilter method fetches the cache post-filter (or Row Filter) before attempting to execute the filter provided by the user.
 org.apache.lucene.search.Filter fetchPreFilter(String table, String filterStr)
          The fetchPreFilter method fetches the cache pre-filter (or Record Filter) before attempting to execute the filter provided by the user.
 void opening(String table, String shard, BlurIndex index)
          Notifies the cache that the index is opening on this shard server.
 org.apache.lucene.search.Filter storePostFilter(String table, String filterStr, org.apache.lucene.search.Filter filter, BlurFilterCache.FilterParser filterParser)
          The storePreFilter method stores the parsed post Filter (or Row Filter) for caching, and should return the Filter to be executed.
 org.apache.lucene.search.Filter storePreFilter(String table, String filterStr, org.apache.lucene.search.Filter filter, BlurFilterCache.FilterParser filterParser)
          The storePreFilter method stores the parsed pre Filter (or Record Filter) for caching, and should return the Filter to be executed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBlurFilterCache

public DefaultBlurFilterCache(BlurConfiguration configuration)
Method Detail

fetchPreFilter

public org.apache.lucene.search.Filter fetchPreFilter(String table,
                                                      String filterStr)
Description copied from class: BlurFilterCache
The fetchPreFilter method fetches the cache pre-filter (or Record Filter) before attempting to execute the filter provided by the user.

Specified by:
fetchPreFilter in class BlurFilterCache
Parameters:
table - the table name.
filterStr - the filter query string, should be used as a key.
Returns:
the Filter to execute or not is missing.

fetchPostFilter

public org.apache.lucene.search.Filter fetchPostFilter(String table,
                                                       String filterStr)
Description copied from class: BlurFilterCache
The fetchPostFilter method fetches the cache post-filter (or Row Filter) before attempting to execute the filter provided by the user.

Specified by:
fetchPostFilter in class BlurFilterCache
Parameters:
table - the table name.
filterStr - the filter query string, should be used as a key.
Returns:
the Filter to execute or not is missing.

storePreFilter

public org.apache.lucene.search.Filter storePreFilter(String table,
                                                      String filterStr,
                                                      org.apache.lucene.search.Filter filter,
                                                      BlurFilterCache.FilterParser filterParser)
                                               throws org.apache.lucene.queryparser.classic.ParseException
Description copied from class: BlurFilterCache
The storePreFilter method stores the parsed pre Filter (or Record Filter) for caching, and should return the Filter to be executed.

Specified by:
storePreFilter in class BlurFilterCache
Parameters:
table - the table name.
filterStr - the filter query string, should be used as a key.
Returns:
the Filter that was parsed by the SuperParser.
Throws:
org.apache.lucene.queryparser.classic.ParseException

storePostFilter

public org.apache.lucene.search.Filter storePostFilter(String table,
                                                       String filterStr,
                                                       org.apache.lucene.search.Filter filter,
                                                       BlurFilterCache.FilterParser filterParser)
                                                throws org.apache.lucene.queryparser.classic.ParseException
Description copied from class: BlurFilterCache
The storePreFilter method stores the parsed post Filter (or Row Filter) for caching, and should return the Filter to be executed.

Specified by:
storePostFilter in class BlurFilterCache
Parameters:
table - the table name.
filterStr - the filter query string, should be used as a key.
Returns:
the Filter that was parsed by the SuperParser.
Throws:
org.apache.lucene.queryparser.classic.ParseException

closing

public void closing(String table,
                    String shard,
                    BlurIndex index)
Description copied from class: BlurFilterCache
Notifies the cache that the index is closing on this shard server.

Specified by:
closing in class BlurFilterCache
Parameters:
table - the table name.
shard - the shard name.
index - the BlurIndex.

opening

public void opening(String table,
                    String shard,
                    BlurIndex index)
Description copied from class: BlurFilterCache
Notifies the cache that the index is opening on this shard server.

Specified by:
opening in class BlurFilterCache
Parameters:
table - the table name.
shard - the shard name.
index - the BlurIndex.


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.