Class PlatformCacheEntryFilterImpl
- java.lang.Object
-
- org.apache.ignite.internal.processors.platform.PlatformAbstractPredicate
-
- org.apache.ignite.internal.processors.platform.cache.PlatformCacheEntryFilterImpl
-
- All Implemented Interfaces:
Externalizable,Serializable,PlatformCacheEntryFilter,IgniteBiPredicate
public class PlatformCacheEntryFilterImpl extends PlatformAbstractPredicate implements PlatformCacheEntryFilter
Interop filter. Delegates apply to native platform.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.platform.PlatformAbstractPredicate
ctx, pred, ptr
-
-
Constructor Summary
Constructors Constructor Description PlatformCacheEntryFilterImpl()Externalizablesupport.PlatformCacheEntryFilterImpl(Object pred, long ptr, PlatformContext ctx)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapply(Object k, Object v)Predicate body.voidcacheContext(GridCacheContext cctx)Sets the cache context.voidonClose()Callback invoked when filter is no longer needed.voidsetIgniteInstance(Ignite ignite)-
Methods inherited from class org.apache.ignite.internal.processors.platform.PlatformAbstractPredicate
readExternal, writeExternal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.lang.IgniteBiPredicate
and
-
-
-
-
Constructor Detail
-
PlatformCacheEntryFilterImpl
public PlatformCacheEntryFilterImpl()
Externalizablesupport.
-
PlatformCacheEntryFilterImpl
public PlatformCacheEntryFilterImpl(Object pred, long ptr, PlatformContext ctx)
Constructor.- Parameters:
pred- .Net binary predicate.ptr- Pointer to predicate in the native platform.ctx- Kernal context.
-
-
Method Detail
-
apply
public boolean apply(Object k, Object v)
Predicate body.- Specified by:
applyin interfaceIgniteBiPredicate- Parameters:
k- First parameter.v- Second parameter.- Returns:
- Return value.
-
onClose
public void onClose()
Callback invoked when filter is no longer needed.- Specified by:
onClosein interfacePlatformCacheEntryFilter
-
cacheContext
public void cacheContext(GridCacheContext cctx)
Sets the cache context.- Specified by:
cacheContextin interfacePlatformCacheEntryFilter- Parameters:
cctx- Cache context.
-
setIgniteInstance
@IgniteInstanceResource public void setIgniteInstance(Ignite ignite)
- Parameters:
ignite- Ignite instance.
-
-