|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.manager.BlurFilterCache
public abstract class BlurFilterCache
The BlurFilterCache
class provides the ability to cache pre and post
filters on a per table basis. The closing and opening methods should be used
as hooks to for when tables are being enabled and disabled.
Nested Class Summary | |
---|---|
static interface |
BlurFilterCache.FilterParser
|
Constructor Summary | |
---|---|
BlurFilterCache(BlurConfiguration configuration)
|
Method Summary | |
---|---|
abstract void |
closing(String table,
String shard,
BlurIndex index)
Notifies the cache that the index is closing on this shard server. |
abstract 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. |
abstract 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. |
abstract void |
opening(String table,
String shard,
BlurIndex index)
Notifies the cache that the index is opening on this shard server. |
abstract 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. |
abstract 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 |
---|
public BlurFilterCache(BlurConfiguration configuration)
Method Detail |
---|
public abstract org.apache.lucene.search.Filter fetchPreFilter(String table, String filterStr)
Record
Filter) before attempting to execute the filter provided by the user.
table
- the table name.filterStr
- the filter query string, should be used as a key.
Filter
to execute or not is missing.public abstract org.apache.lucene.search.Filter fetchPostFilter(String table, String filterStr)
Row
Filter) before attempting to execute the filter provided by the user.
table
- the table name.filterStr
- the filter query string, should be used as a key.
Filter
to execute or not is missing.public abstract 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
Filter
(or
Record
Filter) for caching, and should return the Filter
to
be executed.
table
- the table name.filterStr
- the filter query string, should be used as a key.
Filter
that was parsed by the SuperParser
.
org.apache.lucene.queryparser.classic.ParseException
public abstract 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
Filter
(or
Row
Filter) for caching, and should return the Filter
to be
executed.
table
- the table name.filterStr
- the filter query string, should be used as a key.
Filter
that was parsed by the SuperParser
.
org.apache.lucene.queryparser.classic.ParseException
public abstract void closing(String table, String shard, BlurIndex index)
table
- the table name.shard
- the shard name.index
- the BlurIndex
.public abstract void opening(String table, String shard, BlurIndex index)
table
- the table name.shard
- the shard name.index
- the BlurIndex
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |