public class BinaryTypeConfiguration extends Object implements Serializable
IgniteConfiguration.setBinaryConfiguration(BinaryConfiguration)
.
However, this class allows you to change configuration properties for a specific
binary type without affecting configuration for other binary types.Constructor and Description |
---|
BinaryTypeConfiguration()
Constructor.
|
BinaryTypeConfiguration(BinaryTypeConfiguration other)
Copying constructor.
|
BinaryTypeConfiguration(String typeName) |
Modifier and Type | Method and Description |
---|---|
@Nullable Map<String,Integer> |
getEnumValues() |
BinaryIdMapper |
getIdMapper()
Gets ID mapper.
|
BinaryNameMapper |
getNameMapper()
Gets name mapper.
|
BinarySerializer |
getSerializer()
Gets serializer.
|
String |
getTypeName()
Gets type name.
|
boolean |
isEnum()
Gets whether this is enum type.
|
BinaryTypeConfiguration |
setEnum(boolean isEnum)
Sets whether this is enum type.
|
BinaryTypeConfiguration |
setEnumValues(@Nullable Map<String,Integer> values)
Set enum ordinal to names mapping.
|
BinaryTypeConfiguration |
setIdMapper(BinaryIdMapper idMapper)
Sets ID mapper.
|
BinaryTypeConfiguration |
setNameMapper(BinaryNameMapper nameMapper)
Sets name mapper.
|
BinaryTypeConfiguration |
setSerializer(BinarySerializer serializer)
Sets serializer.
|
BinaryTypeConfiguration |
setTypeName(String typeName)
Sets type name.
|
String |
toString() |
public BinaryTypeConfiguration()
public BinaryTypeConfiguration(BinaryTypeConfiguration other)
other
- Other instance.public BinaryTypeConfiguration(String typeName)
typeName
- Class name.public String getTypeName()
public BinaryTypeConfiguration setTypeName(String typeName)
typeName
- Type name.this
for chaining.public BinaryIdMapper getIdMapper()
public BinaryTypeConfiguration setIdMapper(BinaryIdMapper idMapper)
idMapper
- ID mapper.this
for chaining.public BinaryNameMapper getNameMapper()
public BinaryTypeConfiguration setNameMapper(BinaryNameMapper nameMapper)
nameMapper
- Name mapper.this
for chaining.public BinarySerializer getSerializer()
public BinaryTypeConfiguration setSerializer(BinarySerializer serializer)
serializer
- Serializer.this
for chaining.public boolean isEnum()
True
if enum.public BinaryTypeConfiguration setEnum(boolean isEnum)
isEnum
- True
if enum.this
for chaining.public BinaryTypeConfiguration setEnumValues(@Nullable @Nullable Map<String,Integer> values)
values
- Map of enum name to ordinal.this
for chaining.@Nullable public @Nullable Map<String,Integer> getEnumValues()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023