Class NearCacheValue<V>

java.lang.Object
org.gridgain.internal.table.nearcache.NearCacheValue<V>

public class NearCacheValue<V> extends Object
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 Details

    • NearCacheValue

      public NearCacheValue()
      Constructor of non-existing value.
    • NearCacheValue

      public NearCacheValue(@Nullable V value)
      Constructor of an existing value.
      Parameters:
      value - value.
  • Method Details

    • value

      @Nullable public V value()
      Get the value.
      Returns:
      Value.
    • exists

      public boolean exists()
      Check if the value actually exists in the table.
      Returns:
      true if the value actually exists in the table.