public class DomFileIndex extends ScalarIndexExtension<java.lang.String>
Modifier and Type | Field and Description |
---|---|
static ID<java.lang.String,java.lang.Void> |
NAME |
VOID_DATA_EXTERNALIZER
EXTENSION_POINT_NAME
Constructor and Description |
---|
DomFileIndex() |
Modifier and Type | Method and Description |
---|---|
boolean |
dependsOnFileContent() |
DataIndexer<java.lang.String,java.lang.Void,FileContent> |
getIndexer() |
FileBasedIndex.InputFilter |
getInputFilter() |
KeyDescriptor<java.lang.String> |
getKeyDescriptor() |
ID<java.lang.String,java.lang.Void> |
getName() |
int |
getVersion() |
getValueExternalizer
getCacheSize, getFileTypesWithSizeLimitNotApplicable, hasSnapshotMapping, indexDirectories, keyIsUniqueForIndexedFile, needsForwardIndexWhenSharing, traceKeyHashToVirtualFileMapping
public static final ID<java.lang.String,java.lang.Void> NAME
public ID<java.lang.String,java.lang.Void> getName()
getName
in class FileBasedIndexExtension<java.lang.String,java.lang.Void>
public DataIndexer<java.lang.String,java.lang.Void,FileContent> getIndexer()
getIndexer
in class IndexExtension<java.lang.String,java.lang.Void,FileContent>
public KeyDescriptor<java.lang.String> getKeyDescriptor()
getKeyDescriptor
in class IndexExtension<java.lang.String,java.lang.Void,FileContent>
public FileBasedIndex.InputFilter getInputFilter()
getInputFilter
in class FileBasedIndexExtension<java.lang.String,java.lang.Void>
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 boolean dependsOnFileContent()
dependsOnFileContent
in class FileBasedIndexExtension<java.lang.String,java.lang.Void>
public int getVersion()
getVersion
in class IndexExtension<java.lang.String,java.lang.Void,FileContent>