Interface ImpulseStatement
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ImpulseStatementImpl
SQLite-style parameterized prepared statement for executing compiled queries
and traversals.
-
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.default ImpulseStatementBinds an array of 32-bit node IDs to a named parameter.Binds an array of node IDs to a named parameter.default ImpulseStatementbindNodes(String param, Collection<? extends Number> nodeIds) Binds a collection of numeric node IDs to a named parameter.bindString(String param, String value) default ImpulseStatementbindStrings(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.default 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).default 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).default 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).
-
Method Details
-
bindNode
Binds a scalar node ID to a named parameter. -
bindNode
Binds a scalar node ID to a 1-indexed positional parameter. -
bindNodes
Binds an array of node IDs to a named parameter. -
bindNodes
Binds an array of node IDs to a 1-indexed positional parameter. -
bindNodes
Binds an array of 32-bit node IDs to a named parameter. -
bindNodes
Binds a collection of numeric node IDs to a named parameter. Note: Prefer primitive arrays (long[] or int[]) to avoid boxing overhead. -
bindBitset
Binds a bitset to a named parameter. -
bindLong
Binds an integer value to a named parameter. -
bindDouble
Binds a double-precision float value to a named parameter. -
bindString
-
bindStrings
Binds a list or collection of string values to a named parameter. -
clearBindings
ImpulseStatement clearBindings()Clears all parameter bindings. -
execute
RowReader execute()Executes the statement and returns a row cursor over the result set. -
executeBitSet
ImpulseBitSet executeBitSet()Executes the statement and materializes the target domain nodes as anImpulseBitSet. -
executeScalar
double executeScalar()Executes the statement and returns a scalar aggregate result. -
count
long count()Executes the statement and returns the total cardinality of the resulting frontier. -
executeLaneFrontier
default long[] executeLaneFrontier()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). -
executeNodeVector
default long[] executeNodeVector()Executes the statement and materializes the resulting node vector (TYPE_NODE_VECTORor active frontier nodes) as along[]array. -
executeFloatVector
default float[] executeFloatVector()Executes the statement and materializes the resulting float vector (TYPE_FLOAT_VECTOR) as afloat[]array. -
executeKeys
-
executeValueMap
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-