Interface ImpulseStatement

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
ImpulseStatementImpl

public interface ImpulseStatement extends AutoCloseable
SQLite-style parameterized prepared statement for executing compiled queries and traversals.
  • Method Details

    • bindNode

      ImpulseStatement bindNode(String param, long nodeId)
      Binds a scalar node ID to a named parameter.
    • bindNode

      ImpulseStatement bindNode(int paramIdx, long nodeId)
      Binds a scalar node ID to a 1-indexed positional parameter.
    • bindNodes

      ImpulseStatement bindNodes(String param, long[] nodeIds)
      Binds an array of node IDs to a named parameter.
    • bindNodes

      ImpulseStatement bindNodes(int paramIdx, long[] nodeIds)
      Binds an array of node IDs to a 1-indexed positional parameter.
    • bindNodes

      default ImpulseStatement bindNodes(String param, int[] nodeIds)
      Binds an array of 32-bit node IDs to a named parameter.
    • bindNodes

      default ImpulseStatement bindNodes(String param, Collection<? extends Number> nodeIds)
      Binds a collection of numeric node IDs to a named parameter. Note: Prefer primitive arrays (long[] or int[]) to avoid boxing overhead.
    • bindBitset

      ImpulseStatement bindBitset(String param, ImpulseBitSet bitset)
      Binds a bitset to a named parameter.
    • bindLong

      ImpulseStatement bindLong(String param, long value)
      Binds an integer value to a named parameter.
    • bindDouble

      ImpulseStatement bindDouble(String param, double value)
      Binds a double-precision float value to a named parameter.
    • bindString

      ImpulseStatement bindString(String param, String value)
    • bindStrings

      default ImpulseStatement bindStrings(String param, Collection<String> values)
      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 an ImpulseBitSet.
    • 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 by activeMask).
    • executeNodeVector

      default long[] executeNodeVector()
      Executes the statement and materializes the resulting node vector (TYPE_NODE_VECTOR or active frontier nodes) as a long[] array.
    • executeFloatVector

      default float[] executeFloatVector()
      Executes the statement and materializes the resulting float vector (TYPE_FLOAT_VECTOR) as a float[] array.
    • executeKeys

      default List<String> executeKeys()
      Executes the statement and materializes the resulting external string keys (TYPE_STRING_VECTOR).
    • executeValueMap

      default Map<Integer,Object> executeValueMap()
      Executes the statement and materializes the resulting node-to-value map (TYPE_VALUE_MAP).
    • close

      void close()
      Specified by:
      close in interface AutoCloseable