Class IgniteMapImpl<K,V>

java.lang.Object
org.gridgain.internal.structure.map.IgniteMapImpl<K,V>
Type Parameters:
K - The type of the key.
V - The type of the value.
All Implemented Interfaces:
org.gridgain.structure.IgniteMap<K,V>

public class IgniteMapImpl<K,V> extends Object implements org.gridgain.structure.IgniteMap<K,V>
Internal implementation of IgniteMap based on KeyValueView.
  • Constructor Details

    • IgniteMapImpl

      public IgniteMapImpl(String tableName, org.apache.ignite.table.KeyValueView<?,?> kvView, org.apache.ignite.sql.IgniteSql sql, org.apache.ignite.marshalling.Marshaller<K,?> km, org.apache.ignite.marshalling.Marshaller<V,?> vm)
      Constructor.
  • Method Details

    • putAsync

      public CompletableFuture<@Nullable V> putAsync(K key, V value)
      Specified by:
      putAsync in interface org.gridgain.structure.IgniteMap<K,V>
    • removeAsync

      public CompletableFuture<@Nullable V> removeAsync(K key)
      Specified by:
      removeAsync in interface org.gridgain.structure.IgniteMap<K,V>
    • putAllAsync

      public CompletableFuture<Void> putAllAsync(Map<? extends K,? extends V> m)
      Specified by:
      putAllAsync in interface org.gridgain.structure.IgniteMap<K,V>
    • getAsync

      public CompletableFuture<V> getAsync(K key)
      Specified by:
      getAsync in interface org.gridgain.structure.IgniteMap<K,V>
    • containsKeyAsync

      public CompletableFuture<Boolean> containsKeyAsync(K key)
      Specified by:
      containsKeyAsync in interface org.gridgain.structure.IgniteMap<K,V>
    • sizeAsync

      public CompletableFuture<Long> sizeAsync()
      Specified by:
      sizeAsync in interface org.gridgain.structure.IgniteMap<K,V>
    • clearAsync

      public CompletableFuture<Void> clearAsync()
      Specified by:
      clearAsync in interface org.gridgain.structure.IgniteMap<K,V>
    • getAllAsync

      public CompletableFuture<org.apache.ignite.lang.AsyncCursor<Map.Entry<K,V>>> getAllAsync()
      Specified by:
      getAllAsync in interface org.gridgain.structure.IgniteMap<K,V>
    • isEmptyAsync

      public CompletableFuture<Boolean> isEmptyAsync()
      Specified by:
      isEmptyAsync in interface org.gridgain.structure.IgniteMap<K,V>
    • put

      public V put(K key, V value)
      Specified by:
      put in interface org.gridgain.structure.IgniteMap<K,V>
    • putAll

      public void putAll(Map<? extends K,? extends V> m)
      Specified by:
      putAll in interface org.gridgain.structure.IgniteMap<K,V>
    • containsKey

      public boolean containsKey(K key)
      Specified by:
      containsKey in interface org.gridgain.structure.IgniteMap<K,V>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.gridgain.structure.IgniteMap<K,V>
    • remove

      public V remove(K key)
      Specified by:
      remove in interface org.gridgain.structure.IgniteMap<K,V>
    • get

      public V get(K key)
      Specified by:
      get in interface org.gridgain.structure.IgniteMap<K,V>
    • size

      public long size()
      Specified by:
      size in interface org.gridgain.structure.IgniteMap<K,V>
    • getAll

      public org.apache.ignite.lang.AsyncCursor<Map.Entry<K,V>> getAll()
      Specified by:
      getAll in interface org.gridgain.structure.IgniteMap<K,V>
    • clear

      public void clear()
      Specified by:
      clear in interface org.gridgain.structure.IgniteMap<K,V>