Package hec.io.dbf

Class DbfQueryResultSet

All Implemented Interfaces:
DbfRecordIndexSet, DbfRecordSet, Serializable

public class DbfQueryResultSet extends DbfResultSet implements DbfRecordSet
An object the contains the results of a DBF query.
See Also:
  • Constructor Details

  • Method Details

    • size

      public int size()
      Description copied from interface: DbfRecordSet
      Returns the number of Dbf Records in this set.
      Specified by:
      size in interface DbfRecordSet
      Returns:
    • get

      public DbfRecord get(int i)
      Returns the Dbf Record at the argument index.
      Specified by:
      get in interface DbfRecordSet
    • add

      public void add(DbfRecord rec)
      Adds the argument Dbf record to record set. If the record is already in this set it is replaced.
      Specified by:
      add in interface DbfRecordSet
    • add

      public void add(Serializable indexTagKey, Vector data)
      Creates a new DbfRecord using the argument data and adds it to the set.
      Specified by:
      add in interface DbfRecordSet
    • iterator

      public Iterator iterator()
      Returns an iterator for this record set.
      Specified by:
      iterator in interface DbfRecordSet
    • getFieldNames

      public String[] getFieldNames()
      Returns the fields for these query results.
      Specified by:
      getFieldNames in interface DbfRecordSet
    • printData

      public void printData()
      Prints descriptive information on this object to System.out.
      Specified by:
      printData in interface DbfRecordIndexSet
      Specified by:
      printData in interface DbfRecordSet
      Overrides:
      printData in class DbfResultSet