-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitOrigin-RevId: dcebbb96a489012754b342ab6ed0f266066cff7f
- Loading branch information
1 parent
352e14c
commit 7aa4148
Showing
18 changed files
with
725 additions
and
566 deletions.
There are no files selected for viewing
377 changes: 375 additions & 2 deletions
377
platform/indexing-impl/src/com/intellij/psi/stubs/StubIndexEx.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
platform/indexing-impl/src/com/intellij/psi/stubs/StubUpdatableIndexFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. | ||
package com.intellij.psi.stubs; | ||
|
||
import com.intellij.openapi.application.ApplicationManager; | ||
import com.intellij.util.indexing.FileBasedIndexExtension; | ||
import com.intellij.util.indexing.storage.MapReduceIndexBase; | ||
import com.intellij.util.indexing.storage.VfsAwareIndexStorageLayout; | ||
import org.jetbrains.annotations.ApiStatus; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.io.IOException; | ||
|
||
@ApiStatus.Internal | ||
public abstract class StubUpdatableIndexFactory { | ||
static StubUpdatableIndexFactory getInstance() { | ||
return ApplicationManager.getApplication().getService(StubUpdatableIndexFactory.class); | ||
} | ||
|
||
@NotNull | ||
public abstract MapReduceIndexBase<Integer, SerializedStubTree> createIndex(@NotNull FileBasedIndexExtension<Integer, SerializedStubTree> extension, | ||
@NotNull VfsAwareIndexStorageLayout<Integer, SerializedStubTree> layout, | ||
@NotNull SerializationManagerEx serializationManager) | ||
throws IOException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.