Interface ImpulseGraphQuery<R>

Type Parameters:
R - Return type of the query result (e.g. RoaringBitmap, long[], Boolean, Long)

public interface ImpulseGraphQuery<R>
Strongly-typed, serializable representation of a graph query (e.g. reachability, transitive closure, set algebra, neighborhood extraction).

Queries are pure, immutable ImpScheme AST values with no reference to any graph instance.

  • Method Details

    • builder

      static <R> ImpulseQueryBuilder<R> builder()
      Obtains a new ImpulseQueryBuilder instance to construct a query AST.
    • execute

      R execute(ImpulseGraphSnapshot snapshot, Object input)
      Executes this query against a target ImpulseGraphSnapshot with the specified input parameters.
    • getAst

      ImpScmNode getAst()
      Returns the underlying ImpScheme S-Expression AST program representing this query.
    • getOperationName

      String getOperationName()
      Returns the string name or structural operation description of this query root node.
    • getParameters

      default Map<String,Object> getParameters()
      Returns the map of bound parameters for this query.
    • exportAst

      default String exportAst()
      Returns a human-readable ImpScheme S-expression text representation of the query AST.
    • disassemble

      default String disassemble(ImpulseGraphSnapshot snapshot)
      Disassembles the query into Impulse VM bytecode assembly format.