An Incremunica Distinct Hash Query Operation Actor.

Hierarchy

  • ActorQueryOperationTypedMediated<Algebra.Distinct>
    • ActorQueryOperationDistinctHash

Constructors

Properties

beforeActors: Actor<IActionQueryOperation, IActorTest, IQueryOperationResult>[]

Actor that must be registered in the bus before this actor.

bus: Bus<
    Actor<IActionQueryOperation, IActorTest, IQueryOperationResult>,
    IActionQueryOperation,
    IActorTest,
    IQueryOperationResult,
>

The bus this actor subscribes to.

mediatorHashBindings: MediatorHashBindings
mediatorHashQuads: MediatorHashQuads
mediatorQueryOperation: MediatorQueryOperation
name: string

The name for this actor.

{<rdf:subject>}
operationName: string

Methods

  • Parameters

    • context: IActionContext
    • Optionaldata: () => any

    Returns any

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Parameters

    • context: IActionContext
    • message: string
    • Optionaldata: () => any

    Returns void

  • Create a new distinct filter function. This will maintain an internal hash datastructure so that every bindings object only returns true once.

    Parameters

    • context: IActionContext

      The action context.

    • variables: Variable[]

      The variables to take into account while hashing.

    Returns Promise<(bindings: Bindings) => boolean>

    A distinct filter for bindings.

  • Create a new distinct filter function to hash quads. This will maintain an internal hash datastructure so that every quad object only returns true once.

    Parameters

    • context: IActionContext

      The action context.

    Returns Promise<(quad: Quad) => boolean>

    A distinct filter for quads.

  • Run the given action on this actor.

    In most cases, this method should not be called directly. Instead, #runObservable should be called.

    Parameters

    • action: IActionQueryOperation

      The action to run.

    • sideData: undefined

    Returns Promise<IQueryOperationResult>

    A promise that resolves to the run result.

  • Run the given action on this actor AND invokes the Bus#onRun method.

    Parameters

    • action: IActionQueryOperation

      The action to run.

    • sideData: undefined

    Returns Promise<IQueryOperationResult>

    A promise that resolves to the run result.

  • Check if this actor can run the given action, without actually running it.

    Parameters

    • action: IActionQueryOperation

      The action to test.

    Returns Promise<TestResult<IActorTest, undefined>>

    A promise that resolves to the test result.

  • Get the logger from the given context.

    Parameters

    • context: IActionContext

      An optional context.

    Returns undefined | Logger

    The logger or undefined.