def add_descriptor(self, descriptor, no_cache=False):
    '\n        Add a descriptor to this index.\n\n        Adding the same descriptor multiple times should not add multiple\n        copies of the descriptor in the index.\n\n        :param descriptor: Descriptor to index.\n        :type descriptor: smqtk.representation.DescriptorElement\n\n        :param no_cache: Do not cache the internal table if a file cache was\n            provided. This would be used if adding many descriptors at a time,\n            preventing a file write for every individual descriptor added.\n        :type no_cache: bool\n\n        '
    self._table[descriptor.uuid()] = descriptor
    if (not no_cache):
        self.cache_table()
Add a descriptor to this index.

Adding the same descriptor multiple times should not add multiple
copies of the descriptor in the index.

:param descriptor: Descriptor to index.
:type descriptor: smqtk.representation.DescriptorElement

:param no_cache: Do not cache the internal table if a file cache was
    provided. This would be used if adding many descriptors at a time,
    preventing a file write for every individual descriptor added.
:type no_cache: bool
def add_descriptor(self, descriptor, no_cache=False):
    '\n        Add a descriptor to this index.\n\n        Adding the same descriptor multiple times should not add multiple\n        copies of the descriptor in the index.\n\n        :param descriptor: Descriptor to index.\n        :type descriptor: smqtk.representation.DescriptorElement\n\n        :param no_cache: Do not cache the internal table if a file cache was\n            provided. This would be used if adding many descriptors at a time,\n            preventing a file write for every individual descriptor added.\n        :type no_cache: bool\n\n        '
    self._table[descriptor.uuid()] = descriptor
    if (not no_cache):
        self.cache_table()