Package hec.io.dbf
Class DefaultDbfRecordIndexSet
java.lang.Object
hec.io.dbf.DefaultDbfRecordIndexSet
- All Implemented Interfaces:
DbfRecordIndexSet,Serializable
- Direct Known Subclasses:
DbfRecordQuery,DbfResultSet
A class that defines the index and record number information for a Dbf related function.
This class is used for delete operations and is the base class for all other operations.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCopy constructs a record index set.DefaultDbfRecordIndexSet(String indexTagName, Serializable[] indexTagKeys) Constructs a record index set with the tag name and the key array.DefaultDbfRecordIndexSet(String indexFileName, String indexTagName) Constructs record index set with the argument index file and index tag.DefaultDbfRecordIndexSet(String indexFileName, String indexTagName, Serializable[] indexTagKeys) Constructs a record index set with the index file, index tag, and key array. -
Method Summary
Modifier and TypeMethodDescriptionReturns the index file name.Returns the index tag keys for this set.Returns the index tag.booleanhasIndex()Returns true if an index tag is specified.voidPrints out the data for this record index set to System.out.
-
Constructor Details
-
DefaultDbfRecordIndexSet
Constructs record index set with the argument index file and index tag. The index file can be null, the index tag shouldnt be null. -
DefaultDbfRecordIndexSet
Constructs a record index set with the tag name and the key array. -
DefaultDbfRecordIndexSet
public DefaultDbfRecordIndexSet(String indexFileName, String indexTagName, Serializable[] indexTagKeys) Constructs a record index set with the index file, index tag, and key array. -
DefaultDbfRecordIndexSet
Copy constructs a record index set.
-
-
Method Details
-
getIndexFileName
Returns the index file name.- Specified by:
getIndexFileNamein interfaceDbfRecordIndexSet
-
getIndexTagName
Returns the index tag.- Specified by:
getIndexTagNamein interfaceDbfRecordIndexSet
-
getIndexTagKeys
Description copied from interface:DbfRecordIndexSetReturns the index tag keys for this set. For example, the id numbers or names.- Specified by:
getIndexTagKeysin interfaceDbfRecordIndexSet
-
hasIndex
public boolean hasIndex()Returns true if an index tag is specified.- Specified by:
hasIndexin interfaceDbfRecordIndexSet
-
printData
public void printData()Prints out the data for this record index set to System.out.- Specified by:
printDatain interfaceDbfRecordIndexSet
-