Package org.gridgain.structure
Class MapConfiguration
java.lang.Object
org.gridgain.structure.MapConfiguration
Configuration for a
If
IgniteMap structure.
If
keyClass or valueClass is not natively supported, falls back to byte[] with corresponding marshaller.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MapConfiguration.BuilderCreates a new builder for map with the specified name.static MapConfiguration.Builderbuilder(String mapName, Marshaller<?, byte[]> keyMarshaller, Marshaller<?, byte[]> valueMarshaller) Creates a new builder for map with the specified name.@Nullable StringReturns map distribution zone.Class<?>Returns map key class.Marshaller<?,byte[]> Returns map key marshaller.getName()Returns map name.@Nullable StringReturns map storage profile.Class<?>Returns map value class.Marshaller<?,byte[]> Returns map value marshaller.
-
Method Details
-
builder
public static MapConfiguration.Builder builder(String mapName, Class<?> keyClass, Class<?> valueClass) Creates a new builder for map with the specified name.
IfkeyClassorvalueClassis not natively supported, falls back tobyte[]with corresponding marshaller.- Parameters:
mapName- TheIgniteMap's name.keyClass- TheIgniteMap's key type.valueClass- TheIgniteMap's value type.- Returns:
- Builder.
-
builder
public static MapConfiguration.Builder builder(String mapName, Marshaller<?, byte[]> keyMarshaller, Marshaller<?, byte[]> valueMarshaller) Creates a new builder for map with the specified name.- Parameters:
mapName- TheIgniteMap's name.keyMarshaller- TheIgniteMap's key marshaller.valueMarshaller- TheIgniteMap's value marshaller.- Returns:
- Builder.
-
getName
Returns map name.- Returns:
- The
IgniteMap's name.
-
getKeyClass
Returns map key class.- Returns:
- The
IgniteMap's key class.
-
getValueClass
Returns map value class.- Returns:
- The
IgniteMap's value class.
-
getKeyMarshaller
Returns map key marshaller.- Returns:
- The
IgniteMap's key marshaller.
-
getValueMarshaller
Returns map value marshaller.- Returns:
- The
IgniteMap's value marshaller.
-
getDistributionZone
Returns map distribution zone.- Returns:
- The
IgniteMap's distribution zone.
-
getStorageProfile
Returns map storage profile.- Returns:
- The
IgniteMap's storage profile.
-