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 TypeMethodDescriptionvoid
copyFromPrevious
(String fileKey) static String
static String
importsMapCacheKey
(String key) boolean
boolean
static String
byte[]
readFileContentHash
(String fileKey) readImportMapEntry
(String fileKey) readProjectLevelSymbolTableEntry
(String fileKey) void
void
writeFileContentHash
(String fileKey, byte[] hash) void
writeFilesList
(List<String> mainFiles) void
writeImportsMapEntry
(String fileKey, Set<String> imports) void
writeProjectLevelSymbolTableEntry
(String fileKey, Set<Descriptor> descriptors) void
writeTypeshedModules
(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
-