Package org.sonar.plugins.python.caching
Class Caching
java.lang.Object
org.sonar.plugins.python.caching.Caching
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyFromPrevious(String fileKey) static Stringstatic Stringstatic StringimportsMapCacheKey(String key) booleanbooleanbooleanisTestSourcesConfiguredUnchanged(boolean current) static Stringorg.sonar.api.batch.fs.InputFile.TypereadEffectiveFileType(String fileKey) byte[]readFileContentHash(String fileKey) readImportMapEntry(String fileKey) readProjectLevelSymbolTableEntry(String fileKey) voidvoidwriteEffectiveFileType(String fileKey, org.sonar.api.batch.fs.InputFile.Type type) voidwriteFileContentHash(String fileKey, byte[] hash) voidwriteFilesList(List<String> mainFiles) voidwriteImportsMapEntry(String fileKey, Set<String> imports) voidwriteProjectLevelSymbolTableEntry(String fileKey, Set<Descriptor> descriptors) voidwriteTestSourcesConfigured(boolean testSourcesConfigured) voidwriteTypeshedModules(Set<String> stubModules)
-
Field Details
-
IMPORTS_MAP_CACHE_KEY_PREFIX
- See Also:
-
PROJECT_SYMBOL_TABLE_CACHE_KEY_PREFIX
- See Also:
-
PROJECT_FILES_KEY
- See Also:
-
CONTENT_HASHES_KEY
- See Also:
-
TYPESHED_MODULES_KEY
- See Also:
-
CACHE_VERSION_KEY
- See Also:
-
CPD_TOKENS_CACHE_KEY_PREFIX
- See Also:
-
CPD_TOKENS_STRING_TABLE_KEY_PREFIX
- See Also:
-
EFFECTIVE_FILE_TYPE_CACHE_KEY_PREFIX
- See Also:
-
TEST_SOURCES_CONFIGURED_KEY
- See Also:
-
cacheVersion
-
-
Constructor Details
-
Caching
-
-
Method Details
-
writeImportsMapEntry
-
writeFileContentHash
-
writeFilesList
-
writeTypeshedModules
-
writeCacheVersion
public void writeCacheVersion() -
writeProjectLevelSymbolTableEntry
-
copyFromPrevious
-
writeEffectiveFileType
-
readEffectiveFileType
-
writeTestSourcesConfigured
public void writeTestSourcesConfigured(boolean testSourcesConfigured) -
isTestSourcesConfiguredUnchanged
public boolean isTestSourcesConfiguredUnchanged(boolean current) -
readProjectLevelSymbolTableEntry
-
readImportMapEntry
-
readFileContentHash
-
readFilesList
-
readTypeshedModules
-
isCacheVersionUpToDate
public boolean isCacheVersionUpToDate() -
isCacheEnabled
public boolean isCacheEnabled() -
cacheContext
-
importsMapCacheKey
-
projectSymbolTableCacheKey
-
fileContentHashCacheKey
-
effectiveFileTypeCacheKey
-