Class GridSetQueryPredicate<K,V>
- java.lang.Object
-
- org.apache.ignite.internal.processors.datastructures.GridSetQueryPredicate<K,V>
-
- All Implemented Interfaces:
Externalizable,Serializable,IgniteBiPredicate<K,V>
public class GridSetQueryPredicate<K,V> extends Object implements IgniteBiPredicate<K,V>, Externalizable
Predicate for query overIgniteSetitems.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridSetQueryPredicate()Required byExternalizable.GridSetQueryPredicate(IgniteUuid setId, boolean collocated)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanapply(K k, V v)Predicate body.booleancollocated()voidinit(GridCacheContext ctx)voidreadExternal(ObjectInput in)IgniteUuidsetId()StringtoString()voidwriteExternal(ObjectOutput out)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.lang.IgniteBiPredicate
and
-
-
-
-
Constructor Detail
-
GridSetQueryPredicate
public GridSetQueryPredicate()
Required byExternalizable.
-
GridSetQueryPredicate
public GridSetQueryPredicate(IgniteUuid setId, boolean collocated)
- Parameters:
setId- Set ID.collocated- Collocation flag.
-
-
Method Detail
-
init
public void init(GridCacheContext ctx)
- Parameters:
ctx- Cache context.
-
collocated
public boolean collocated()
- Returns:
- Collocation flag.
-
setId
public IgniteUuid setId()
- Returns:
- Set ID.
-
apply
public boolean apply(K k, V v)
Predicate body.- Specified by:
applyin interfaceIgniteBiPredicate<K,V>- Parameters:
k- First parameter.v- Second parameter.- Returns:
- Return value.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-