Class AddressIndexPrimaryKeyIterator

java.lang.Object
ghidra.program.database.map.AddressIndexPrimaryKeyIterator
All Implemented Interfaces:
DBFieldIterator

public class AddressIndexPrimaryKeyIterator extends Object implements DBFieldIterator
Long iterator over indexed addresses. The longs are primary keys returned ordered and restrained by the address field they contain
  • Constructor Details

    • AddressIndexPrimaryKeyIterator

      public AddressIndexPrimaryKeyIterator()
      Empty iterator constructor
    • AddressIndexPrimaryKeyIterator

      public AddressIndexPrimaryKeyIterator(Table table, int indexCol, AddressMap addrMap, boolean atStart) throws IOException
      Constructs a new AddressIndexPrimaryKeyIterator. Memory addresses encoded as Absolute are not included.
      Parameters:
      table - the database table containing indexed addresses.
      indexCol - the column that contains indexed addresses.
      addrMap - the address map
      atStart - if true, iterates forward, otherwise iterates backwards.
      Throws:
      IOException - if a database io error occurs.
    • AddressIndexPrimaryKeyIterator

      public AddressIndexPrimaryKeyIterator(Table table, int indexCol, AddressMap addrMap, Address minAddr, Address maxAddr, boolean atStart) throws IOException
      Constructs a new AddressIndexPrimaryKeyIterator for a range of addresses. Memory addresses encoded as Absolute are not included.
      Parameters:
      table - the database table containing indexed addresses.
      indexCol - the column that contains indexed addresses.
      addrMap - the address map
      minAddr - the first address in the range to iterate over.
      maxAddr - the last address in the range to iterator over.
      atStart - if true, iterates forward, otherwise iterates backwards.
      Throws:
      IOException - if a database io error occurs.
    • AddressIndexPrimaryKeyIterator

      public AddressIndexPrimaryKeyIterator(Table table, int indexCol, AddressMap addrMap, AddressSetView set, boolean atStart) throws IOException
      Constructs a new AddressIndexPrimaryKeyIterator for a set of addresses. Memory addresses encoded as Absolute are not included.
      Parameters:
      table - the database table containing indexed addresses.
      indexCol - the column that contains indexed addresses.
      addrMap - the address map
      set - the set of addresses to iterator over.
      atStart - if true, iterates forward, otherwise iterates backwards.
      Throws:
      IOException - if a database io error occurs.
    • AddressIndexPrimaryKeyIterator

      public AddressIndexPrimaryKeyIterator(Table table, int indexCol, AddressMap addrMap, Address start, boolean before) throws IOException
      Constructs a new AddressIndexPrimaryKeyIterator starting at a given address. Memory addresses encoded as Absolute are not included.
      Parameters:
      table - the database table containing indexed addresses.
      indexCol - the column that contains indexed addresses.
      addrMap - the address map
      start - the starting address for the iterator.
      before - if true, positions the iterator before start, otherwise positions it after start.
      Throws:
      IOException - if a database io error occurs.
  • Method Details