public class BinaryConfiguration extends Object
IgniteBinary
Modifier and Type | Field and Description |
---|---|
static boolean |
DFLT_COMPACT_FOOTER
Default compact footer flag setting.
|
Constructor and Description |
---|
BinaryConfiguration() |
Modifier and Type | Method and Description |
---|---|
BinaryIdMapper |
getIdMapper()
Gets ID mapper.
|
BinarySerializer |
getSerializer()
Gets serializer.
|
Collection<BinaryTypeConfiguration> |
getTypeConfigurations()
Gets types configuration.
|
boolean |
isCompactFooter()
Get whether to write footers in compact form.
|
void |
setClassNames(Collection<String> clsNames)
Sets class names of binary objects explicitly.
|
void |
setCompactFooter(boolean compactFooter)
Set whether to write footers in compact form.
|
void |
setIdMapper(BinaryIdMapper idMapper)
Sets ID mapper.
|
void |
setSerializer(BinarySerializer serializer)
Sets serializer.
|
void |
setTypeConfigurations(Collection<BinaryTypeConfiguration> typeCfgs)
Sets type configurations.
|
public static final boolean DFLT_COMPACT_FOOTER
public void setClassNames(Collection<String> clsNames)
clsNames
- Class names.public BinaryIdMapper getIdMapper()
public void setIdMapper(BinaryIdMapper idMapper)
idMapper
- ID mapper.public BinarySerializer getSerializer()
public void setSerializer(BinarySerializer serializer)
serializer
- Serializer.public Collection<BinaryTypeConfiguration> getTypeConfigurations()
public void setTypeConfigurations(Collection<BinaryTypeConfiguration> typeCfgs)
typeCfgs
- Type configurations.public boolean isCompactFooter()
BinaryMarshaller
already 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
.
public void setCompactFooter(boolean compactFooter)
isCompactFooter()
for more info.compactFooter
- Whether to write footers in compact form.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.0.final Release Date : December 29 2015