Interface FileBasedIndex

All Known Implementing Classes:
FileBasedIndexImpl

public interface FileBasedIndex
user: Ildar date: 17.04.15
  • Method Details

    • requestReIndex

      void requestReIndex(Path file)
      Запустить индексацию файлов
      Parameters:
      file - - директория или файл для индексации
    • reindexProject

      void reindexProject()
    • requestReIndex

      void requestReIndex(List<Path> paths)
    • isIndexingInProcess

      boolean isIndexingInProcess()
    • clear

      void clear()
      Полностью очистить индексы
    • clear

      void clear(Path file)
      Очистить индексы по файлу
      Parameters:
      file - - директория или файл
    • getValue

      <V, K> V getValue(ID<K,V> indexId, K dataKey)
      Получить значение индекса
      Parameters:
      indexId - - индекс
      dataKey - - ключ
      Returns:
      - значение, если нашлось много возвращается первое совпадение, если ничего не нашлось null
    • getValues

      <V, K> List<V> getValues(ID<K,V> indexId, K dataKey)
      Получить значения индекса
      Parameters:
      indexId - - индекс
      dataKey - - ключ
      Returns:
      значения
    • getAllValues

      <V, K> List<V> getAllValues(ID<K,V> indexId)
      Получить все значения индекса
      Parameters:
      indexId - - индекс
      Returns:
      все значения
    • getAllEntries

      <K, V> Set<? extends Map.Entry<K,V>> getAllEntries(ID<K,V> indexId)
    • getIndexMap

      <K, V> Map<K,V> getIndexMap(ID<K,V> indexId)
    • isIndexed

      boolean isIndexed(ID<?,?> indexId)
      Проверить статус индекса
      Parameters:
      indexId - - Index extension name
      Returns:
      - true - если индекс готов
    • checkIsIndexed

      void checkIsIndexed(ID<?,?> indexId) throws IndexNotReadyException
      Проверить статус индекса
      Parameters:
      indexId - - Index extension name
      Throws:
      IndexNotReadyException - if index not found
    • addIndexListener

      void addIndexListener(IndexListener indexListener)
    • removeIndexListener

      void removeIndexListener(IndexListener indexListener)