Interface IPhysicalQueryPlanLogger

A physical query plan logger collects operations, which can then be serialized as a query plan to JSON.

interface IPhysicalQueryPlanLogger {
    logOperation: ((logicalOperator, physicalOperator, node, parentNode, actor, metadata) => void);
    toJson: (() => any);
}

Implemented by

    Properties

    Properties

    logOperation: ((logicalOperator, physicalOperator, node, parentNode, actor, metadata) => void)

    Log an operation.

    Important here is that the node and parentNode can be of any type, as long as they properly reference each other in subsequent calls. These node references can be used to build up a hierarchy.

    Type declaration

      • (logicalOperator, physicalOperator, node, parentNode, actor, metadata): void
      • Parameters

        • logicalOperator: string

          The current logical query operator.

        • physicalOperator: undefined | string

          The current physical query operator. This may be omitted if no physical operator applies.

        • node: any

          The current operation node.

        • parentNode: any

          The parent operation node.

        • actor: string

          The current actor name.

        • metadata: any

          Metadata to include together in the physical query plan output for this node.

        Returns void

    toJson: (() => any)

    Serialize the collected query plan to JSON.

    Type declaration

      • (): any
      • Returns any