Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum.database.querycache
Class BulkRemovalFilter

java.lang.Object
  extended by com.jivesoftware.forum.database.querycache.BulkRemovalFilter
All Implemented Interfaces:
com.tangosol.io.ExternalizableLite, com.tangosol.util.Filter, com.tangosol.util.filter.EntryFilter, com.tangosol.util.filter.IndexAwareFilter, java.io.Serializable

public class BulkRemovalFilter
extends java.lang.Object
implements com.tangosol.util.filter.IndexAwareFilter, com.tangosol.io.ExternalizableLite

Filter which selects a set of entries whose QueryCacheKey.getIDKey() method returned the same idkey as that stored in this filter instance.

See Also:
Serialized Form

Constructor Summary
BulkRemovalFilter()
          No args constructor for serialization
BulkRemovalFilter(int objectType)
           
BulkRemovalFilter(java.lang.String idKey)
           
 
Method Summary
 com.tangosol.util.Filter applyIndex(java.util.Map map, java.util.Set setKeys)
          Responds to indexes on QueryCacheKey.getIDKey().
 int calculateEffectiveness(java.util.Map map, java.util.Set setKeys)
           
 boolean evaluate(java.lang.Object object)
           
 boolean evaluateEntry(java.util.Map.Entry entry)
           
 void readExternal(java.io.DataInput dataInput)
           
 void writeExternal(java.io.DataOutput dataOutput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkRemovalFilter

public BulkRemovalFilter()
No args constructor for serialization


BulkRemovalFilter

public BulkRemovalFilter(java.lang.String idKey)

BulkRemovalFilter

public BulkRemovalFilter(int objectType)
Method Detail

evaluateEntry

public boolean evaluateEntry(java.util.Map.Entry entry)
Specified by:
evaluateEntry in interface com.tangosol.util.filter.EntryFilter

evaluate

public boolean evaluate(java.lang.Object object)
Specified by:
evaluate in interface com.tangosol.util.Filter

calculateEffectiveness

public int calculateEffectiveness(java.util.Map map,
                                  java.util.Set setKeys)
Specified by:
calculateEffectiveness in interface com.tangosol.util.filter.IndexAwareFilter

applyIndex

public com.tangosol.util.Filter applyIndex(java.util.Map map,
                                           java.util.Set setKeys)
Responds to indexes on QueryCacheKey.getIDKey(). If an indexed value matching the idKey field of this filter is present, the supplied set of keys will be modified to match, otherwise it will be cleared. The modified set of keys will be treated as the result of the filter. If no index has been defined, the system will fall back on a linear scan of the entries, calling evaluateEntry on this filter for each one.

Specified by:
applyIndex in interface com.tangosol.util.filter.IndexAwareFilter

readExternal

public void readExternal(java.io.DataInput dataInput)
                  throws java.io.IOException
Specified by:
readExternal in interface com.tangosol.io.ExternalizableLite
Throws:
java.io.IOException

writeExternal

public void writeExternal(java.io.DataOutput dataOutput)
                   throws java.io.IOException
Specified by:
writeExternal in interface com.tangosol.io.ExternalizableLite
Throws:
java.io.IOException

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.