Class FileBasedIndexImpl

java.lang.Object
ru.cg.webbpm.studio.core.impl.indexing.FileBasedIndexImpl
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, FileBasedIndex

@Component public class FileBasedIndexImpl extends Object implements FileBasedIndex, org.springframework.beans.factory.DisposableBean
user: Ildar date: 17.04.15
  • Constructor Details

  • Method Details

    • reindexProject

      public void reindexProject()
      Specified by:
      reindexProject in interface FileBasedIndex
    • requestReIndex

      public void requestReIndex(List<Path> paths)
      Specified by:
      requestReIndex in interface FileBasedIndex
    • requestReIndex

      public void requestReIndex(Path file)
      Description copied from interface: FileBasedIndex
      Запустить индексацию файлов
      Specified by:
      requestReIndex in interface FileBasedIndex
      Parameters:
      file - - директория или файл для индексации
    • isIndexingInProcess

      public boolean isIndexingInProcess()
      Specified by:
      isIndexingInProcess in interface FileBasedIndex
    • clear

      public void clear()
      Description copied from interface: FileBasedIndex
      Полностью очистить индексы
      Specified by:
      clear in interface FileBasedIndex
    • clear

      public void clear(Path file)
      Description copied from interface: FileBasedIndex
      Очистить индексы по файлу
      Specified by:
      clear in interface FileBasedIndex
      Parameters:
      file - - директория или файл
    • getValue

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

      public <V, K> List<V> getValues(ID<K,V> indexId, K dataKey)
      Description copied from interface: FileBasedIndex
      Получить значения индекса
      Specified by:
      getValues in interface FileBasedIndex
      Parameters:
      indexId - - индекс
      dataKey - - ключ
      Returns:
      значения
    • getAllValues

      public <V, K> List<V> getAllValues(ID<K,V> indexId)
      Description copied from interface: FileBasedIndex
      Получить все значения индекса
      Specified by:
      getAllValues in interface FileBasedIndex
      Parameters:
      indexId - - индекс
      Returns:
      все значения
    • getAllEntries

      public <K, V> Set<? extends Map.Entry<K,V>> getAllEntries(ID<K,V> indexId)
      Specified by:
      getAllEntries in interface FileBasedIndex
    • getIndexMap

      public <K, V> Map<K,V> getIndexMap(ID<K,V> indexId)
      Specified by:
      getIndexMap in interface FileBasedIndex
    • isIndexed

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

      public void checkIsIndexed(ID<?,?> indexId)
      Description copied from interface: FileBasedIndex
      Проверить статус индекса
      Specified by:
      checkIsIndexed in interface FileBasedIndex
      Parameters:
      indexId - - Index extension name
    • addIndexListener

      public void addIndexListener(IndexListener indexListener)
      Specified by:
      addIndexListener in interface FileBasedIndex
    • removeIndexListener

      public void removeIndexListener(IndexListener indexListener)
      Specified by:
      removeIndexListener in interface FileBasedIndex
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean