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 StringimportsMapCacheKey(String key) booleanbooleanstatic Stringbyte[]readFileContentHash(String fileKey) readImportMapEntry(String fileKey) readProjectLevelSymbolTableEntry(String fileKey) voidvoidwriteFileContentHash(String fileKey, byte[] hash) voidwriteFilesList(List<String> mainFiles) voidwriteImportsMapEntry(String fileKey, Set<String> imports) voidwriteProjectLevelSymbolTableEntry(String fileKey, Set<Descriptor> descriptors) 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:
-
cacheVersion
-
-
Constructor Details
-
Caching
-
-
Method Details
-
writeImportsMapEntry
-
writeFileContentHash
-
writeFilesList
-
writeTypeshedModules
-
writeCacheVersion
public void writeCacheVersion() -
writeProjectLevelSymbolTableEntry
-
copyFromPrevious
-
readProjectLevelSymbolTableEntry
-
readImportMapEntry
-
readFileContentHash
-
readFilesList
-
readTypeshedModules
-
isCacheVersionUpToDate
public boolean isCacheVersionUpToDate() -
isCacheEnabled
public boolean isCacheEnabled() -
cacheContext
-
importsMapCacheKey
-
projectSymbolTableCacheKey
-
fileContentHashCacheKey
-