Class CompiledQuery
java.lang.Object
org.impulsegraph.vm.CompiledQuery
Immutable compiled VM execution plan with zero-copy MethodHandle JIT
compilation, physical relation patch table, lock-free snapshot re-binding,
and disassembly.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCompiledQuery(MemorySegment programSeg, long instructionCount, List<RelationInstructionPatch> patches, Map<String, Integer> relationIdMap, ImpulseGraphSnapshot initialSnapshot, Arena arena, List<String> stringPool) CompiledQuery(MemorySegment programSeg, long instructionCount, List<RelationInstructionPatch> patches, Map<String, Integer> relationIdMap, ImpulseGraphSnapshot initialSnapshot, Arena arena, List<String> stringPool, MemorySegment inlineDataSegment) -
Method Summary
Modifier and TypeMethodDescriptionDisassembles the compiled bytecode instructions into human-readable assembly code.execute(ImpulseGraphSnapshot snapshot, Object input, Arena executionArena) Executes the compiled query against a graph snapshot with lock-free atomic state reads and active query reference counting.longpatches()voidrebind(ImpulseGraphSnapshot newSnapshot) Re-binds this compiled query to a new blue/green swapped snapshot using an atomic reference update.
-
Constructor Details
-
CompiledQuery
public CompiledQuery(MemorySegment programSeg, long instructionCount, List<RelationInstructionPatch> patches, Map<String, Integer> relationIdMap, ImpulseGraphSnapshot initialSnapshot, Arena arena, List<String> stringPool) -
CompiledQuery
public CompiledQuery(MemorySegment programSeg, long instructionCount, List<RelationInstructionPatch> patches, Map<String, Integer> relationIdMap, ImpulseGraphSnapshot initialSnapshot, Arena arena, List<String> stringPool, MemorySegment inlineDataSegment)
-
-
Method Details
-
inlineDataSegment
-
bindingState
-
programSegment
-
instructionCount
public long instructionCount() -
methodHandle
-
currentSnapshot
-
stringPool
-
patches
-
rebind
Re-binds this compiled query to a new blue/green swapped snapshot using an atomic reference update. -
execute
Executes the compiled query against a graph snapshot with lock-free atomic state reads and active query reference counting. -
disassemble
Disassembles the compiled bytecode instructions into human-readable assembly code.
-