Package org.gridgain.structure
Interface IgniteStructures
public interface IgniteStructures
Provides the ability to create or access to different distributed structures.
-
Method Summary
Modifier and TypeMethodDescription<K,V> IgniteMap<K, V> getOrCreateMap(String name, Class<K> keyClass, Class<V> valueClass) Returns new or already existedIgniteMapwith provided name.<K,V> IgniteMap<K, V> getOrCreateMap(String name, Marshaller<K, byte[]> keyMarshaller, Marshaller<V, byte[]> valueMarshaller) Returns new or already existedIgniteMapwith provided name.<K,V> IgniteMap<K, V> getOrCreateMap(MapConfiguration configuration) Returns new or already existedIgniteMapwith provided name.<K,V> CompletableFuture<IgniteMap<K, V>> getOrCreateMapAsync(String name, Class<K> keyClass, Class<V> valueClass) Returns new or already existedIgniteMapwith provided name.<K,V> CompletableFuture<IgniteMap<K, V>> getOrCreateMapAsync(String name, Marshaller<K, byte[]> keyMarshaller, Marshaller<V, byte[]> valueMarshaller) Returns new or already existedIgniteMapwith provided name.<K,V> CompletableFuture<IgniteMap<K, V>> getOrCreateMapAsync(MapConfiguration configuration) Returns new or already existedIgniteMapwith provided name.
-
Method Details
-
getOrCreateMapAsync
Returns new or already existedIgniteMapwith provided name.- Type Parameters:
K- TheIgniteMap's key type.V- TheIgniteMap's value type.- Parameters:
configuration- TheIgniteMap's configuration.
-
getOrCreateMapAsync
<K,V> CompletableFuture<IgniteMap<K,V>> getOrCreateMapAsync(String name, Marshaller<K, byte[]> keyMarshaller, Marshaller<V, byte[]> valueMarshaller) Returns new or already existedIgniteMapwith provided name.- Type Parameters:
K- TheIgniteMap's key type.V- TheIgniteMap's value type.- Parameters:
name- TheIgniteMap's name.keyMarshaller- TheIgniteMap's key marshaller.valueMarshaller- TheIgniteMap's value marshaller.
-
getOrCreateMapAsync
<K,V> CompletableFuture<IgniteMap<K,V>> getOrCreateMapAsync(String name, Class<K> keyClass, Class<V> valueClass) Returns new or already existedIgniteMapwith provided name. IfkeyClassorvalueClassis not natively supported, falls back tobyte[]with corresponding marshaller.- Type Parameters:
K- TheIgniteMap's key type.V- TheIgniteMap's value type.- Parameters:
name- TheIgniteMap's name.keyClass- TheIgniteMap's key class.valueClass- TheIgniteMap's value class.
-
getOrCreateMap
Returns new or already existedIgniteMapwith provided name.- Type Parameters:
K- TheIgniteMap's key type.V- TheIgniteMap's value type.- Parameters:
configuration- TheIgniteMap's configuration.
-
getOrCreateMap
<K,V> IgniteMap<K,V> getOrCreateMap(String name, Marshaller<K, byte[]> keyMarshaller, Marshaller<V, byte[]> valueMarshaller) Returns new or already existedIgniteMapwith provided name.- Type Parameters:
K- TheIgniteMap's key type.V- TheIgniteMap's value type.- Parameters:
name- TheIgniteMap's name.keyMarshaller- TheIgniteMap's key marshaller.valueMarshaller- TheIgniteMap's value marshaller.
-
getOrCreateMap
Returns new or already existedIgniteMapwith provided name. IfkeyClassorvalueClassis not natively supported, falls back tobyte[]with corresponding marshaller.- Type Parameters:
K- TheIgniteMap's key type.V- TheIgniteMap's value type.- Parameters:
name- TheIgniteMap's name.keyClass- TheIgniteMap's key class.valueClass- TheIgniteMap's value class.
-