Package org.apache.ignite.configuration
Class BinaryConfiguration
- java.lang.Object
-
- org.apache.ignite.configuration.BinaryConfiguration
-
- All Implemented Interfaces:
Serializable
public class BinaryConfiguration extends Object implements Serializable
Configuration object for Ignite Binary Objects.- See Also:
IgniteBinary, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDFLT_COMPACT_FOOTERDefault compact footer flag setting.
-
Constructor Summary
Constructors Constructor Description BinaryConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryIdMappergetIdMapper()Gets ID mapper.BinaryNameMappergetNameMapper()Gets name mapper.BinarySerializergetSerializer()Gets serializer.Collection<BinaryTypeConfiguration>getTypeConfigurations()Gets types configuration.booleanisCompactFooter()Get whether to write footers in compact form.BinaryConfigurationsetClassNames(Collection<String> clsNames)Sets class names of binary objects explicitly.BinaryConfigurationsetCompactFooter(boolean compactFooter)Set whether to write footers in compact form.BinaryConfigurationsetIdMapper(BinaryIdMapper idMapper)Sets ID mapper.BinaryConfigurationsetNameMapper(BinaryNameMapper nameMapper)Sets name mapper.BinaryConfigurationsetSerializer(BinarySerializer serializer)Sets serializer.BinaryConfigurationsetTypeConfigurations(Collection<BinaryTypeConfiguration> typeCfgs)Sets type configurations.StringtoString()
-
-
-
Field Detail
-
DFLT_COMPACT_FOOTER
public static final boolean DFLT_COMPACT_FOOTER
Default compact footer flag setting.- See Also:
- Constant Field Values
-
-
Method Detail
-
setClassNames
public BinaryConfiguration setClassNames(Collection<String> clsNames)
Sets class names of binary objects explicitly.- Parameters:
clsNames- Class names.- Returns:
thisfor chaining.
-
getIdMapper
public BinaryIdMapper getIdMapper()
Gets ID mapper.- Returns:
- ID mapper.
-
setIdMapper
public BinaryConfiguration setIdMapper(BinaryIdMapper idMapper)
Sets ID mapper.- Parameters:
idMapper- ID mapper.- Returns:
thisfor chaining.
-
getNameMapper
public BinaryNameMapper getNameMapper()
Gets name mapper.- Returns:
- Name mapper.
-
setNameMapper
public BinaryConfiguration setNameMapper(BinaryNameMapper nameMapper)
Sets name mapper.- Parameters:
nameMapper- Name mapper.- Returns:
thisfor chaining.
-
getSerializer
public BinarySerializer getSerializer()
Gets serializer.- Returns:
- Serializer.
-
setSerializer
public BinaryConfiguration setSerializer(BinarySerializer serializer)
Sets serializer.- Parameters:
serializer- Serializer.- Returns:
thisfor chaining.
-
getTypeConfigurations
public Collection<BinaryTypeConfiguration> getTypeConfigurations()
Gets types configuration.- Returns:
- Types configuration.
-
setTypeConfigurations
public BinaryConfiguration setTypeConfigurations(Collection<BinaryTypeConfiguration> typeCfgs)
Sets type configurations.- Parameters:
typeCfgs- Type configurations.- Returns:
thisfor chaining.
-
isCompactFooter
public boolean isCompactFooter()
Get whether to write footers in compact form. When enabled, Ignite will not write fields metadata when serializing objects, because internallyBinaryMarshalleralready distribute metadata inside cluster. This increases serialization performance.WARNING! This mode should be disabled when already serialized data can be taken from some external sources (e.g. cache store which stores data in binary form, data center replication, etc.). Otherwise binary objects without any associated metadata could appear in the cluster and Ignite will not be able to deserialize it.
Defaults to
DFLT_COMPACT_FOOTER.- Returns:
- Whether to write footers in compact form.
-
setCompactFooter
public BinaryConfiguration setCompactFooter(boolean compactFooter)
Set whether to write footers in compact form. SeeisCompactFooter()for more info.- Parameters:
compactFooter- Whether to write footers in compact form.- Returns:
thisfor chaining.
-
-