Class ImpulseStatementImpl
java.lang.Object
org.impulsegraph.vm.statement.ImpulseStatementImpl
- All Implemented Interfaces:
AutoCloseable, ImpulseStatement
SQLite-style parameterized prepared statement implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindBitset(String param, ImpulseBitSet bitset) Binds a bitset to a named parameter.bindDouble(String param, double value) Binds a double-precision float value to a named parameter.Binds an integer value to a named parameter.bindNode(int paramIdx, long nodeId) Binds a scalar node ID to a 1-indexed positional parameter.Binds a scalar node ID to a named parameter.bindNodes(int paramIdx, long[] nodeIds) Binds an array of node IDs to a 1-indexed positional parameter.Binds an array of node IDs to a named parameter.bindString(String param, String value) bindStrings(String param, Collection<String> values) Binds a list or collection of string values to a named parameter.Clears all parameter bindings.voidclose()longcount()Executes the statement and returns the total cardinality of the resulting frontier.execute()Executes the statement and returns a row cursor over the result set.Executes the statement and materializes the target domain nodes as anImpulseBitSet.float[]Executes the statement and materializes the resulting float vector (TYPE_FLOAT_VECTOR) as afloat[]array.Executes the statement and materializes the resulting external string keys (TYPE_STRING_VECTOR).long[]Executes the statement and materializes a multi-lane bit-sliced frontier (TYPE_LANE_FRONTIER) as an array of 64-bit lane masks per dense node ID (masked byactiveMask).long[]Executes the statement and materializes the resulting node vector (TYPE_NODE_VECTORor active frontier nodes) as along[]array.doubleExecutes the statement and returns a scalar aggregate result.Executes the statement and materializes the resulting node-to-value map (TYPE_VALUE_MAP).static ImpulseStatementImplfromAst(ImpulseGraphSnapshot snapshot, ImpScmNode ast) static ImpulseStatementImplfromCompiledQuery(ImpulseGraphSnapshot snapshot, CompiledQuery compiledQuery) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ImpulseStatement
bindNodes, bindNodes
-
Constructor Details
-
ImpulseStatementImpl
-
-
Method Details
-
fromAst
-
fromCompiledQuery
public static ImpulseStatementImpl fromCompiledQuery(ImpulseGraphSnapshot snapshot, CompiledQuery compiledQuery) -
bindNode
Description copied from interface:ImpulseStatementBinds a scalar node ID to a named parameter.- Specified by:
bindNodein interfaceImpulseStatement
-
bindNode
Description copied from interface:ImpulseStatementBinds a scalar node ID to a 1-indexed positional parameter.- Specified by:
bindNodein interfaceImpulseStatement
-
bindNodes
Description copied from interface:ImpulseStatementBinds an array of node IDs to a named parameter.- Specified by:
bindNodesin interfaceImpulseStatement
-
bindNodes
Description copied from interface:ImpulseStatementBinds an array of node IDs to a 1-indexed positional parameter.- Specified by:
bindNodesin interfaceImpulseStatement
-
bindBitset
Description copied from interface:ImpulseStatementBinds a bitset to a named parameter.- Specified by:
bindBitsetin interfaceImpulseStatement
-
bindLong
Description copied from interface:ImpulseStatementBinds an integer value to a named parameter.- Specified by:
bindLongin interfaceImpulseStatement
-
bindDouble
Description copied from interface:ImpulseStatementBinds a double-precision float value to a named parameter.- Specified by:
bindDoublein interfaceImpulseStatement
-
bindString
- Specified by:
bindStringin interfaceImpulseStatement
-
bindStrings
Description copied from interface:ImpulseStatementBinds a list or collection of string values to a named parameter.- Specified by:
bindStringsin interfaceImpulseStatement
-
clearBindings
Description copied from interface:ImpulseStatementClears all parameter bindings.- Specified by:
clearBindingsin interfaceImpulseStatement
-
execute
Description copied from interface:ImpulseStatementExecutes the statement and returns a row cursor over the result set.- Specified by:
executein interfaceImpulseStatement
-
executeBitSet
Description copied from interface:ImpulseStatementExecutes the statement and materializes the target domain nodes as anImpulseBitSet.- Specified by:
executeBitSetin interfaceImpulseStatement
-
executeScalar
public double executeScalar()Description copied from interface:ImpulseStatementExecutes the statement and returns a scalar aggregate result.- Specified by:
executeScalarin interfaceImpulseStatement
-
count
public long count()Description copied from interface:ImpulseStatementExecutes the statement and returns the total cardinality of the resulting frontier.- Specified by:
countin interfaceImpulseStatement
-
executeLaneFrontier
public long[] executeLaneFrontier()Description copied from interface:ImpulseStatementExecutes the statement and materializes a multi-lane bit-sliced frontier (TYPE_LANE_FRONTIER) as an array of 64-bit lane masks per dense node ID (masked byactiveMask).- Specified by:
executeLaneFrontierin interfaceImpulseStatement
-
executeNodeVector
public long[] executeNodeVector()Description copied from interface:ImpulseStatementExecutes the statement and materializes the resulting node vector (TYPE_NODE_VECTORor active frontier nodes) as along[]array.- Specified by:
executeNodeVectorin interfaceImpulseStatement
-
executeFloatVector
public float[] executeFloatVector()Description copied from interface:ImpulseStatementExecutes the statement and materializes the resulting float vector (TYPE_FLOAT_VECTOR) as afloat[]array.- Specified by:
executeFloatVectorin interfaceImpulseStatement
-
executeKeys
Description copied from interface:ImpulseStatementExecutes the statement and materializes the resulting external string keys (TYPE_STRING_VECTOR).- Specified by:
executeKeysin interfaceImpulseStatement
-
executeValueMap
Description copied from interface:ImpulseStatementExecutes the statement and materializes the resulting node-to-value map (TYPE_VALUE_MAP).- Specified by:
executeValueMapin interfaceImpulseStatement
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceImpulseStatement
-