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 SummaryFields Modifier and Type Field Description static booleanDFLT_COMPACT_FOOTERDefault compact footer flag setting.
 - 
Constructor SummaryConstructors Constructor Description BinaryConfiguration()
 - 
Method SummaryAll 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_FOOTERpublic static final boolean DFLT_COMPACT_FOOTER Default compact footer flag setting.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
setClassNamespublic BinaryConfiguration setClassNames(Collection<String> clsNames) Sets class names of binary objects explicitly.- Parameters:
- clsNames- Class names.
- Returns:
- thisfor chaining.
 
 - 
getIdMapperpublic BinaryIdMapper getIdMapper() Gets ID mapper.- Returns:
- ID mapper.
 
 - 
setIdMapperpublic BinaryConfiguration setIdMapper(BinaryIdMapper idMapper) Sets ID mapper.- Parameters:
- idMapper- ID mapper.
- Returns:
- thisfor chaining.
 
 - 
getNameMapperpublic BinaryNameMapper getNameMapper() Gets name mapper.- Returns:
- Name mapper.
 
 - 
setNameMapperpublic BinaryConfiguration setNameMapper(BinaryNameMapper nameMapper) Sets name mapper.- Parameters:
- nameMapper- Name mapper.
- Returns:
- thisfor chaining.
 
 - 
getSerializerpublic BinarySerializer getSerializer() Gets serializer.- Returns:
- Serializer.
 
 - 
setSerializerpublic BinaryConfiguration setSerializer(BinarySerializer serializer) Sets serializer.- Parameters:
- serializer- Serializer.
- Returns:
- thisfor chaining.
 
 - 
getTypeConfigurationspublic Collection<BinaryTypeConfiguration> getTypeConfigurations() Gets types configuration.- Returns:
- Types configuration.
 
 - 
setTypeConfigurationspublic BinaryConfiguration setTypeConfigurations(Collection<BinaryTypeConfiguration> typeCfgs) Sets type configurations.- Parameters:
- typeCfgs- Type configurations.
- Returns:
- thisfor chaining.
 
 - 
isCompactFooterpublic 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.
 
 - 
setCompactFooterpublic 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.
 
 
- 
 
-