Class BitSetRowReader

java.lang.Object
org.impulsegraph.vm.statement.BitSetRowReader
All Implemented Interfaces:
AutoCloseable, RowReader

public final class BitSetRowReader extends Object implements RowReader
Zero-copy row reader backed by an active ImpulseBitSet frontier.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BitSetRowReader(ImpulseBitSet bitset, String domainName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the total number of columns in the result set.
    getColumnName(int columnIndex)
    Returns the name of the column at the given 0-indexed position.
    double
    getDouble(int columnIndex)
    Obtains the double-precision float at the given 0-indexed column.
    double
    getDouble(String columnName)
    Obtains the double-precision float for the given column name.
    long
    getLong(int columnIndex)
    Obtains the 64-bit integer at the given 0-indexed column.
    long
    getLong(String columnName)
    Obtains the 64-bit integer for the given column name.
    long
    getNodeId(int columnIndex)
    Obtains the dense node ID at the given 0-indexed column.
    long
    getNodeId(String columnName)
    Obtains the dense node ID for the given column name.
    getString(int columnIndex)
    Obtains the string value at the given 0-indexed column.
    getString(String columnName)
    Obtains the string value for the given column name.
    boolean
    Advances cursor to the next row.
    long
    Returns total row count if known, or -1.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface RowReader

    close, stream
  • Constructor Details

  • Method Details

    • next

      public boolean next()
      Description copied from interface: RowReader
      Advances cursor to the next row.
      Specified by:
      next in interface RowReader
      Returns:
      true if another row exists; false if iteration is complete
    • getNodeId

      public long getNodeId(int columnIndex)
      Description copied from interface: RowReader
      Obtains the dense node ID at the given 0-indexed column.
      Specified by:
      getNodeId in interface RowReader
    • getNodeId

      public long getNodeId(String columnName)
      Description copied from interface: RowReader
      Obtains the dense node ID for the given column name.
      Specified by:
      getNodeId in interface RowReader
    • getLong

      public long getLong(int columnIndex)
      Description copied from interface: RowReader
      Obtains the 64-bit integer at the given 0-indexed column.
      Specified by:
      getLong in interface RowReader
    • getLong

      public long getLong(String columnName)
      Description copied from interface: RowReader
      Obtains the 64-bit integer for the given column name.
      Specified by:
      getLong in interface RowReader
    • getDouble

      public double getDouble(int columnIndex)
      Description copied from interface: RowReader
      Obtains the double-precision float at the given 0-indexed column.
      Specified by:
      getDouble in interface RowReader
    • getDouble

      public double getDouble(String columnName)
      Description copied from interface: RowReader
      Obtains the double-precision float for the given column name.
      Specified by:
      getDouble in interface RowReader
    • getString

      public String getString(int columnIndex)
      Description copied from interface: RowReader
      Obtains the string value at the given 0-indexed column.
      Specified by:
      getString in interface RowReader
    • getString

      public String getString(String columnName)
      Description copied from interface: RowReader
      Obtains the string value for the given column name.
      Specified by:
      getString in interface RowReader
    • getColumnCount

      public int getColumnCount()
      Description copied from interface: RowReader
      Returns the total number of columns in the result set.
      Specified by:
      getColumnCount in interface RowReader
    • getColumnName

      public String getColumnName(int columnIndex)
      Description copied from interface: RowReader
      Returns the name of the column at the given 0-indexed position.
      Specified by:
      getColumnName in interface RowReader
    • rowCount

      public long rowCount()
      Description copied from interface: RowReader
      Returns total row count if known, or -1.
      Specified by:
      rowCount in interface RowReader