public class StubUpdatingIndex extends SingleEntryFileBasedIndexExtension<SerializedStubTree> implements CustomImplementationFileBasedIndexExtension<java.lang.Integer,SerializedStubTree>
Modifier and Type | Field and Description |
---|---|
static ID<java.lang.Integer,SerializedStubTree> |
INDEX_ID |
EXTENSION_POINT_NAME
Constructor and Description |
---|
StubUpdatingIndex() |
StubUpdatingIndex(StubForwardIndexExternalizer<?> stubIndexesExternalizer,
SerializationManagerEx serializationManager) |
Modifier and Type | Method and Description |
---|---|
static boolean |
canHaveStub(VirtualFile file) |
UpdatableIndex<java.lang.Integer,SerializedStubTree,FileContent> |
createIndexImplementation(FileBasedIndexExtension<java.lang.Integer,SerializedStubTree> extension,
IndexStorage<java.lang.Integer,SerializedStubTree> storage) |
SingleEntryIndexer<SerializedStubTree> |
getIndexer() |
FileBasedIndex.InputFilter |
getInputFilter() |
ID<java.lang.Integer,SerializedStubTree> |
getName() |
DataExternalizer<SerializedStubTree> |
getValueExternalizer() |
int |
getVersion() |
dependsOnFileContent, getCacheSize, getFileKey, getKeyDescriptor, keyIsUniqueForIndexedFile
getFileTypesWithSizeLimitNotApplicable, hasSnapshotMapping, indexDirectories, needsForwardIndexWhenSharing, traceKeyHashToVirtualFileMapping
public static final ID<java.lang.Integer,SerializedStubTree> INDEX_ID
public StubUpdatingIndex()
public StubUpdatingIndex(StubForwardIndexExternalizer<?> stubIndexesExternalizer, SerializationManagerEx serializationManager)
public static boolean canHaveStub(VirtualFile file)
public ID<java.lang.Integer,SerializedStubTree> getName()
getName
in class FileBasedIndexExtension<java.lang.Integer,SerializedStubTree>
public SingleEntryIndexer<SerializedStubTree> getIndexer()
getIndexer
in class SingleEntryFileBasedIndexExtension<SerializedStubTree>
public DataExternalizer<SerializedStubTree> getValueExternalizer()
getValueExternalizer
in class IndexExtension<java.lang.Integer,SerializedStubTree,FileContent>
public FileBasedIndex.InputFilter getInputFilter()
getInputFilter
in class FileBasedIndexExtension<java.lang.Integer,SerializedStubTree>
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 int getVersion()
getVersion
in class IndexExtension<java.lang.Integer,SerializedStubTree,FileContent>
public UpdatableIndex<java.lang.Integer,SerializedStubTree,FileContent> createIndexImplementation(FileBasedIndexExtension<java.lang.Integer,SerializedStubTree> extension, IndexStorage<java.lang.Integer,SerializedStubTree> storage) throws StorageException, java.io.IOException
createIndexImplementation
in interface CustomImplementationFileBasedIndexExtension<java.lang.Integer,SerializedStubTree>
StorageException
java.io.IOException