Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BGPCache

An async cache that stores the solution bindings from BGP evaluation

author

Thomas Minier

Hierarchy

Implemented by

Index

Methods

commit

count

  • count(): number

delete

findSubset

  • Search for a BGP in the cache that is a subset of the input BGP This method enable the user to use the Semantic caching technique, to evaluate a BGP using one of its cached subset.

    Parameters

    Returns [TripleObject[], TripleObject[]]

    A pair [subset BGP, set of patterns not in cache]

get

getAsPipeline

  • Access the cache and returns a pipeline stage that returns the content of the cache for a given BGP

    Parameters

    • bgp: BasicGraphPattern

      Cache key, i.e., a Basic Graph pattern

    • Optional onCancel: undefined | function

      Callback invoked when the cache entry is deleted before being committed, so we can produce an alternative pipeline stage to continue query processing. Typically, it is the pipeline stage used to evaluate the BGP without the cache.

    Returns PipelineStage<Bindings>

    A pipeline stage that returns the content of the cache entry for the given BGP

has

update

Generated using TypeDoc