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 Summary
Modifier and TypeMethodDescriptionstatic <R> ImpulseQueryBuilder<R> builder()Obtains a newImpulseQueryBuilderinstance to construct a query AST.default Stringdisassemble(ImpulseGraphSnapshot snapshot) Disassembles the query into Impulse VM bytecode assembly format.execute(ImpulseGraphSnapshot snapshot, Object input) Executes this query against a targetImpulseGraphSnapshotwith the specified input parameters.default StringReturns a human-readable ImpScheme S-expression text representation of the query AST.getAst()Returns the underlying ImpScheme S-Expression AST program representing this query.Returns the string name or structural operation description of this query root node.Returns the map of bound parameters for this query.
-
Method Details
-
builder
Obtains a newImpulseQueryBuilderinstance to construct a query AST. -
execute
Executes this query against a targetImpulseGraphSnapshotwith 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
-
exportAst
Returns a human-readable ImpScheme S-expression text representation of the query AST. -
disassemble
Disassembles the query into Impulse VM bytecode assembly format.
-