public class DuplicatesIndex extends FileBasedIndexExtension<java.lang.Integer,TIntArrayList>
| Modifier and Type | Field and Description |
|---|---|
static ID<java.lang.Integer,TIntArrayList> |
NAME |
EXTENSION_POINT_NAME| Constructor and Description |
|---|
DuplicatesIndex() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
dependsOnFileContent() |
static DuplicatesProfile |
findDuplicatesProfile(FileType fileType) |
DataIndexer<java.lang.Integer,TIntArrayList,FileContent> |
getIndexer() |
FileBasedIndex.InputFilter |
getInputFilter() |
KeyDescriptor<java.lang.Integer> |
getKeyDescriptor() |
ID<java.lang.Integer,TIntArrayList> |
getName() |
DataExternalizer<TIntArrayList> |
getValueExternalizer() |
int |
getVersion() |
boolean |
hasSnapshotMapping() |
static boolean |
setEnabled(boolean value) |
static boolean |
setEnabledOldProfiles(boolean value) |
getCacheSize, getFileTypesWithSizeLimitNotApplicable, indexDirectories, keyIsUniqueForIndexedFile, needsForwardIndexWhenSharing, traceKeyHashToVirtualFileMappingpublic static final ID<java.lang.Integer,TIntArrayList> NAME
public static DuplicatesProfile findDuplicatesProfile(FileType fileType)
public int getVersion()
getVersion in class IndexExtension<java.lang.Integer,TIntArrayList,FileContent>public boolean dependsOnFileContent()
dependsOnFileContent in class FileBasedIndexExtension<java.lang.Integer,TIntArrayList>public ID<java.lang.Integer,TIntArrayList> getName()
getName in class FileBasedIndexExtension<java.lang.Integer,TIntArrayList>public DataIndexer<java.lang.Integer,TIntArrayList,FileContent> getIndexer()
getIndexer in class IndexExtension<java.lang.Integer,TIntArrayList,FileContent>public DataExternalizer<TIntArrayList> getValueExternalizer()
getValueExternalizer in class IndexExtension<java.lang.Integer,TIntArrayList,FileContent>public KeyDescriptor<java.lang.Integer> getKeyDescriptor()
getKeyDescriptor in class IndexExtension<java.lang.Integer,TIntArrayList,FileContent>public FileBasedIndex.InputFilter getInputFilter()
getInputFilter in class FileBasedIndexExtension<java.lang.Integer,TIntArrayList>IndexExtension.getIndexer().
Usually DefaultFileTypeSpecificInputFilter can be used here to index only files with given file-type.
Note that check only file's extension is usually error-prone way and prefer to check VirtualFile.getFileType():
for example user can enforce language file as plain text one.public static boolean setEnabled(boolean value)
public static boolean setEnabledOldProfiles(boolean value)
public boolean hasSnapshotMapping()
hasSnapshotMapping in class FileBasedIndexExtension<java.lang.Integer,TIntArrayList>