class DefaultIndexHandler implements IndexHandler<K, V> {

  public void addIndex(final String attributeName, final 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());
    }
  }

  public  DefaultIndexHandler();

}