Class AddressRecordDeleter


  • public class AddressRecordDeleter
    extends java.lang.Object
    Static methods to delete records from a table. Handles subtle issues with image base causing address to "wrap".
    • Method Detail

      • deleteRecords

        public static boolean deleteRecords​(Table table,
                                            AddressMap addrMap,
                                            Address start,
                                            Address end)
                                     throws java.io.IOException
        Deletes the records the fall within the given range. Uses the address map to convert the address range into 1 or more key ranges. (Address ranges may not be continuous after converting to long space). NOTE: Absolute key encodings are not handled currently !!
        Parameters:
        table - the database table to delete records from.
        addrMap - the address map used to convert addresses into long keys.
        start - the start address in the range.
        end - the end address in the range.
        Throws:
        java.io.IOException - if a database io error occurs.
      • deleteRecords

        public static boolean deleteRecords​(Table table,
                                            int colIx,
                                            AddressMap addrMap,
                                            Address start,
                                            Address end,
                                            RecordFilter filter)
                                     throws java.io.IOException
        Deletes the records that have indexed address fields that fall within the given range. Uses the address map to convert the address range into 1 or more key ranges. (Address ranges may not be continuous after converting to long space). NOTE: Absolute key encodings are not handled currently !!
        Parameters:
        table - the database table to delete records from.
        colIx - the column that has indexed addresses.
        addrMap - the address map used to convert addresses into long keys.
        start - the start address in the range.
        end - the end address in the range.
        Throws:
        java.io.IOException - if a database io error occurs.