Interface VoldemortFilter

All Known Implementing Classes:

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


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

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

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