Class ScoredCacheEntry<K,V>
- java.lang.Object
-
- org.apache.ignite.lang.IgniteBiTuple<K,V>
-
- org.apache.ignite.internal.processors.cache.query.ScoredCacheEntry<K,V>
-
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,Iterable<Object>,Map<K,V>,Map.Entry<K,V>
public class ScoredCacheEntry<K,V> extends IgniteBiTuple<K,V>
Represents cache key-value pair and score to compare cache entry by custom rule.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScoredCacheEntry()ScoredCacheEntry(K key, V val, float score)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadExternal(ObjectInput in)floatscore()StringtoString()voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.apache.ignite.lang.IgniteBiTuple
clear, clone, containsKey, containsValue, entrySet, equals, get, get1, get2, getKey, getValue, hashCode, isEmpty, iterator, keySet, put, putAll, remove, set, set1, set2, setValue, size, swap, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
score
public float score()
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classIgniteBiTuple<K,V>- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classIgniteBiTuple<K,V>- Throws:
IOExceptionClassNotFoundException
-
toString
public String toString()
- Overrides:
toStringin classIgniteBiTuple<K,V>
-
-