Class NearCacheValue<V>
java.lang.Object
org.gridgain.internal.table.nearcache.NearCacheValue<V>
Near Cache value.
We need this class for 2 main reasons:
1. To distinguish between
null and missing values in the table. For this purpose we have the exists flag;
2. To be able to store missing and null values in Caffeine, as you can not put null values in it.-
Constructor Summary
ConstructorsConstructorDescriptionConstructor of non-existing value.NearCacheValue(V value) Constructor of an existing value. -
Method Summary
-
Constructor Details
-
NearCacheValue
public NearCacheValue()Constructor of non-existing value. -
NearCacheValue
Constructor of an existing value.- Parameters:
value- value.
-
-
Method Details
-
value
Get the value.- Returns:
- Value.
-
exists
public boolean exists()Check if the value actually exists in the table.- Returns:
trueif the value actually exists in the table.
-