HiveDatabaseService class

An implementation of DatabaseService using Hive.

Implemented types

Constructors

HiveDatabaseService(String dirPath)

Properties

dirPath String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createCustomEntry(String key, String entry) Future<void>
Creates custom entry under key.
override
createEntry(String digest, String cachedFilePath) Future<void>
Creates an entry for the given digest and cached file path.
override
createEntryForBulk(Map<String, String> cachedFilePaths) Future<void>
Creates entries for the given cached file paths in bulk.
override
flush() Future<void>
Flushes the database service. Flushing to disk, or closing network connections could be done here.
override
getAllData() Future<Map<String, String>>
override
getCachedFilePath(String digest) FutureOr<String>
Gets the cached file path for the given digest.
override
getCachedFilePathForBulk(Iterable<String> digests) FutureOr<Map<String, String>>
Gets the cached file path for the given digests in bulk.
override
getEntryByKey(String key) Future<String?>
Gets entry by key.
override
init() Future<void>
Initializes the database service.
override
isMappingAvailable(String digest) FutureOr<bool>
Checks if the mapping is available for the given digest.
override
isMappingAvailableForBulk(Iterable<String> digests) FutureOr<Map<String, bool>>
Checks if the mapping is available for the given digests in bulk.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prune({required List<String> keysToKeep}) Future<void>
Delete all records except keysToKeep.
override
toString() String
A string representation of this object.
inherited
transaction<T>(Transaction<T> transactionCallback) Future<T>
override

Operators

operator ==(Object other) bool
The equality operator.
inherited