package com.intellij.util.indexing;

import com.intellij.openapi.extensions.ExtensionPointName;
import com.intellij.util.io.DataExternalizer;
import com.intellij.util.io.KeyDescriptor;

/**
 * @author Eugene Zhuravlev
 *         Date: Dec 26, 2007
 */
public interface FileBasedIndexExtension<K, V> {
  ExtensionPointName<FileBasedIndexExtension> EXTENSION_POINT_NAME = ExtensionPointName.create("com.intellij.fileBasedIndex");
  int DEFAULT_CACHE_SIZE = 1024;

  ID<K, V> getName();
  
  DataIndexer<K, V, FileContent> getIndexer();
  
  KeyDescriptor<K> getKeyDescriptor();
  
  DataExternalizer<V> getValueExternalizer();
  
  FileBasedIndex.InputFilter getInputFilter();
  
  boolean dependsOnFileContent();
  
  int getVersion();

  /**
   * @see FileBasedIndexExtension#DEFAULT_CACHE_SIZE
   */
  int getCacheSize();
}

@@ -241,16 +241,75 @@
 6, 2007%0A
+ * V class MUST have equals / hashcode properly defined!!!%0A
  */%0Apubl

comment about equals / hashcode for V class