public class CompositeConverter extends Object implements TypeConverter
CompositeValues for the purpose of querying and storing.
A composite converter may be marked as
transient if at
least one of its component converters is resolved to
NULL_CONVERTER. That null converter set for a
certain component indicates that there are only
null values present
in the index for the corresponding attribute and therefore the actual
attribute type is not resolved yet.
|Constructor and Description|
Constructs a new composite converter from the given component converters.
|Modifier and Type||Method and Description|
public CompositeConverter(TypeConverter converters)
For performance reasons, the ownership of the passed converters array is transferred to the new composite converter instance.
converters- the component converters.
public boolean isTransient()
trueif this composite converter instance contains unresolved component converters,
falseif all component converters are resolved.
public TypeConverter getComponentConverter(int component)
public Comparable convert(Comparable value)
Comparabletyped value to another one. Since TypeConverters are not statically typed itself the developer needs to take care of correct usage of input and output types.
Copyright © 2019 Hazelcast, Inc.. All Rights Reserved.