uk.ac.ic.doc.automed.p2p.son.dht
Class QueryFilter

java.lang.Object
  extended by uk.ac.ic.doc.automed.p2p.son.dht.QueryFilter
All Implemented Interfaces:
java.io.Serializable, ow.routing.CallbackResultFilter

public class QueryFilter
extends java.lang.Object
implements ow.routing.CallbackResultFilter

See Also:
Serialized Form

Field Summary
private  boolean caseSensitive
           
private  KRange krg
          Creates a new instance of QueryFilter
private  java.lang.Object kwd
           
(package private) static java.util.logging.Logger logger
           
 
Constructor Summary
QueryFilter(java.lang.Object so, java.lang.Object rg, boolean caseSensitive)
           
 
Method Summary
 java.io.Serializable filter(java.io.Serializable value)
          Implement interface ow.dht.advanced.EntryFilter
 java.util.Set filter(java.util.Set valueSet)
          Filter the set of ASG index entries against the query filter We first retrieve from the local BPlus index the set of entries that match a query filter.
 java.util.Set filter(java.util.Set valueSet, int[] bloomFilter, RuntimeParameters params)
          Filter result set against a given Bloom filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static final java.util.logging.Logger logger

caseSensitive

private boolean caseSensitive

krg

private KRange krg
Creates a new instance of QueryFilter


kwd

private java.lang.Object kwd
Constructor Detail

QueryFilter

public QueryFilter(java.lang.Object so,
                   java.lang.Object rg,
                   boolean caseSensitive)
Method Detail

filter

public java.io.Serializable filter(java.io.Serializable value)
Implement interface ow.dht.advanced.EntryFilter

Specified by:
filter in interface ow.routing.CallbackResultFilter

filter

public java.util.Set filter(java.util.Set valueSet)
Filter the set of ASG index entries against the query filter We first retrieve from the local BPlus index the set of entries that match a query filter. We then find an intersection between these sets and the value sets. The result is the set ASG entries that match the query

Specified by:
filter in interface ow.routing.CallbackResultFilter

filter

public java.util.Set filter(java.util.Set valueSet,
                            int[] bloomFilter,
                            RuntimeParameters params)
Filter result set against a given Bloom filter

Parameters:
valueSet -
bloomFiter -
Returns: