* com.cetsoft.imcache.cache.search.Indexable#addIndex(com.cetsoft.imcache
* .cache.search.CacheIndex)
*/
public void addIndex(String attributeName, IndexType type) {
if (type == IndexType.UNIQUE_HASH) {
indexes.put(attributeName, new UniqueHashIndex());
} else if (type == IndexType.NON_UNIQUE_HASH) {
indexes.put(attributeName, new NonUniqueHashIndex());
} else if (type == IndexType.RANGE_INDEX) {
indexes.put(attributeName, new RangeIndex());
}