voldemort.client.protocol
Interface VoldemortFilter

All Known Implementing Classes:
DefaultVoldemortFilter

public interface VoldemortFilter

A filter API to provide client a way to filter entries on server side for streaming APIs.

If VoldemortConfig.isNetworkClassLoaderEnabled() is enabled, then implementation class maybe transferred over wire and loaded in a different JVM. please make sure to make the class either public or a static inner class so that it can be loaded w/o parent object if needed.


Method Summary
 boolean accept(java.lang.Object key, Versioned<?> value)
          Extend this function to implement custom filter strategies.
 

Method Detail

accept

boolean accept(java.lang.Object key,
               Versioned<?> value)
Extend this function to implement custom filter strategies.

Parameters:
key -
value -
Returns:
true: if the pair should be kept.


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu