@classmethod
def from_config(cls, config_dict, merge_default=True):
    '\n        Instantiate a new instance of this class given the configuration\n        JSON-compliant dictionary encapsulating initialization arguments.\n\n        :param config_dict: JSON compliant dictionary encapsulating\n            a configuration.\n        :type config_dict: dict\n\n        :param merge_default: Merge the given configuration on top of the\n            default provided by ``get_default_config``.\n        :type merge_default: bool\n\n        :return: Constructed instance from the provided config.\n        :rtype: MemoryDescriptorIndex\n\n        '
    if merge_default:
        config_dict = merge_dict(cls.get_default_config(), config_dict)
    if (config_dict['cache_element'] and config_dict['cache_element']['type']):
        e = plugin.from_plugin_config(config_dict['cache_element'], get_data_element_impls())
        config_dict['cache_element'] = e
    else:
        config_dict['cache_element'] = None
    return super(MemoryDescriptorIndex, cls).from_config(config_dict, False)
Instantiate a new instance of this class given the configuration
JSON-compliant dictionary encapsulating initialization arguments.

:param config_dict: JSON compliant dictionary encapsulating
    a configuration.
:type config_dict: dict

:param merge_default: Merge the given configuration on top of the
    default provided by ``get_default_config``.
:type merge_default: bool

:return: Constructed instance from the provided config.
:rtype: MemoryDescriptorIndex
@classmethod
def from_config(cls, config_dict, merge_default=True):
    '\n        Instantiate a new instance of this class given the configuration\n        JSON-compliant dictionary encapsulating initialization arguments.\n\n        :param config_dict: JSON compliant dictionary encapsulating\n            a configuration.\n        :type config_dict: dict\n\n        :param merge_default: Merge the given configuration on top of the\n            default provided by ``get_default_config``.\n        :type merge_default: bool\n\n        :return: Constructed instance from the provided config.\n        :rtype: MemoryDescriptorIndex\n\n        '
    if merge_default:
        config_dict = merge_dict(cls.get_default_config(), config_dict)
    if (config_dict['cache_element'] and config_dict['cache_element']['type']):
        e = plugin.from_plugin_config(config_dict['cache_element'], get_data_element_impls())
        config_dict['cache_element'] = e
    else:
        config_dict['cache_element'] = None
    return super(MemoryDescriptorIndex, cls).from_config(config_dict, False)