Package hec.io.dbf
Class DbfQueryResultSet
java.lang.Object
hec.io.dbf.DefaultDbfRecordIndexSet
hec.io.dbf.DbfResultSet
hec.io.dbf.DbfQueryResultSet
- All Implemented Interfaces:
DbfRecordIndexSet
,DbfRecordSet
,Serializable
An object the contains the results of a DBF query.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the argument Dbf record to record set.void
add
(Serializable indexTagKey, Vector data) Creates a new DbfRecord using the argument data and adds it to the set.get
(int i) Returns the Dbf Record at the argument index.String[]
Returns the fields for these query results.iterator()
Returns an iterator for this record set.void
Prints descriptive information on this object to System.out.int
size()
Returns the number of Dbf Records in this set.Methods inherited from class hec.io.dbf.DbfResultSet
add, add, getError, getErrorCount, getErrors
Methods inherited from class hec.io.dbf.DefaultDbfRecordIndexSet
getIndexFileName, getIndexTagKeys, getIndexTagName, hasIndex
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hec.io.dbf.DbfRecordIndexSet
getIndexFileName, getIndexTagKeys, getIndexTagName, hasIndex
-
Constructor Details
-
DbfQueryResultSet
-
-
Method Details
-
size
public int size()Description copied from interface:DbfRecordSet
Returns the number of Dbf Records in this set.- Specified by:
size
in interfaceDbfRecordSet
- Returns:
-
get
Returns the Dbf Record at the argument index.- Specified by:
get
in interfaceDbfRecordSet
-
add
Adds the argument Dbf record to record set. If the record is already in this set it is replaced.- Specified by:
add
in interfaceDbfRecordSet
-
add
Creates a new DbfRecord using the argument data and adds it to the set.- Specified by:
add
in interfaceDbfRecordSet
-
iterator
Returns an iterator for this record set.- Specified by:
iterator
in interfaceDbfRecordSet
-
getFieldNames
Returns the fields for these query results.- Specified by:
getFieldNames
in interfaceDbfRecordSet
-
printData
public void printData()Prints descriptive information on this object to System.out.- Specified by:
printData
in interfaceDbfRecordIndexSet
- Specified by:
printData
in interfaceDbfRecordSet
- Overrides:
printData
in classDbfResultSet
-