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