public class LuceneKey2StringMapper extends Object implements TwoWayKey2StringMapper
JdbcStringBasedCacheStoreConfig.setKey2StringMapperClass(String)
Constructor and Description |
---|
LuceneKey2StringMapper() |
Modifier and Type | Method and Description |
---|---|
Object |
getKeyMapping(String key)
This method has to perform the inverse transformation of the keys used in the Lucene
Directory from String to object.
|
String |
getStringMapping(Object key)
Must return an unique String for the supplied key.
|
boolean |
isSupportedType(Class<?> keyType)
Do we support this key type?
|
public boolean isSupportedType(Class<?> keyType)
Key2StringMapper
isSupportedType
in interface Key2StringMapper
keyType
- type to testpublic String getStringMapping(Object key)
Key2StringMapper
getStringMapping
in interface Key2StringMapper
key
- key to map to a Stringpublic Object getKeyMapping(String key)
getKeyMapping
in interface TwoWayKey2StringMapper
key
- string representation of a keyChunkCacheKey.toString()
,
FileCacheKey.toString()
,
FileListCacheKey.toString()
,
FileReadLockKey.toString()
Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.