BlockingReadableJsonStore

The operations of ReadableJsonStore without coroutines, obtained from ReadableJsonStore.blocking. Thread-safe.

It is a view of a store and deliberately not AutoCloseable: the store owns the files, so it is the store that is closed, typically with JsonStore.open(dir).use { … }.

Inheritors

Properties

Functions

Link copied to clipboard
abstract fun count(query: DocumentKeyQuery, atMost: Long = Long.MAX_VALUE): Long
abstract fun count(query: JsonPathQuery, atMost: Long = Long.MAX_VALUE): Long
abstract fun count(query: KeyValueQuery, atMost: Long = Long.MAX_VALUE): Long
Link copied to clipboard
Link copied to clipboard
abstract fun diff(a: CompareOperand, b: CompareOperand, options: DiffOptions = DiffOptions()): List<Difference>

The differences of ReadableJsonStore.diff, at most DiffOptions.maxDifferences of them.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun isEqual(a: CompareOperand, b: CompareOperand, options: CompareOptions = CompareOptions()): Boolean
Link copied to clipboard
Link copied to clipboard
abstract fun objectsOfType(type: String, after: NodeRef? = null, limit: Int = 100): List<NodeRef>
Link copied to clipboard
abstract fun objectsOfTypePage(type: String, after: Cursor? = null, limit: Int = 100): TypePage
Link copied to clipboard
Link copied to clipboard
abstract fun search(query: JsonPathQuery): SearchResult
abstract fun search(query: KeyValueQuery): SearchResult

Starts a search on the current state; close the result when done.

Link copied to clipboard
Link copied to clipboard
abstract fun typeOf(node: NodeRef): String?
Link copied to clipboard
abstract fun verify(progress: VerifyProgress = VerifyProgress { _, _, _ -> }): VerifyReport

See ReadableJsonStore.verify; throwing from progress stops the scrub with that exception.