public final class ConverterCache extends Object
TypeConverter
instances corresponding to
attributes of a single Indexes
instance.Constructor and Description |
---|
ConverterCache(Indexes indexes)
Constructs a new converters cache for the given indexes.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears this cache by purging all entries.
|
TypeConverter |
get(String attribute) |
void |
invalidate(InternalIndex index)
Invalidates this cache after the addition of the given index to the
Indexes for which this cache was constructed for. |
public ConverterCache(Indexes indexes)
indexes
- the indexes to construct a cache for.public TypeConverter get(String attribute)
TypeConverter
for the given attribute or null
if
this cache doesn't aware of a converter for the given attribute.public void invalidate(InternalIndex index)
Indexes
for which this cache was constructed for.index
- the index added.public void clear()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.