public class BinaryConfiguration extends Object implements Serializable
IgniteBinary
,
Serialized FormModifier 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.
|
BinaryNameMapper |
getNameMapper()
Gets name mapper.
|
BinarySerializer |
getSerializer()
Gets serializer.
|
Collection<BinaryTypeConfiguration> |
getTypeConfigurations()
Gets types configuration.
|
boolean |
isCompactFooter()
Get whether to write footers in compact form.
|
BinaryConfiguration |
setClassNames(Collection<String> clsNames)
Sets class names of binary objects explicitly.
|
BinaryConfiguration |
setCompactFooter(boolean compactFooter)
Set whether to write footers in compact form.
|
BinaryConfiguration |
setIdMapper(BinaryIdMapper idMapper)
Sets ID mapper.
|
BinaryConfiguration |
setNameMapper(BinaryNameMapper nameMapper)
Sets name mapper.
|
BinaryConfiguration |
setSerializer(BinarySerializer serializer)
Sets serializer.
|
BinaryConfiguration |
setTypeConfigurations(Collection<BinaryTypeConfiguration> typeCfgs)
Sets type configurations.
|
String |
toString() |
public static final boolean DFLT_COMPACT_FOOTER
public BinaryConfiguration setClassNames(Collection<String> clsNames)
clsNames
- Class names.this
for chaining.public BinaryIdMapper getIdMapper()
public BinaryConfiguration setIdMapper(BinaryIdMapper idMapper)
idMapper
- ID mapper.this
for chaining.public BinaryNameMapper getNameMapper()
public BinaryConfiguration setNameMapper(BinaryNameMapper nameMapper)
nameMapper
- Name mapper.this
for chaining.public BinarySerializer getSerializer()
public BinaryConfiguration setSerializer(BinarySerializer serializer)
serializer
- Serializer.this
for chaining.public Collection<BinaryTypeConfiguration> getTypeConfigurations()
public BinaryConfiguration setTypeConfigurations(Collection<BinaryTypeConfiguration> typeCfgs)
typeCfgs
- Type configurations.this
for chaining.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 BinaryConfiguration setCompactFooter(boolean compactFooter)
isCompactFooter()
for more info.compactFooter
- Whether to write footers in compact form.this
for chaining.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023