Package ghidra.program.database.util
Class QueryRecordIterator
java.lang.Object
ghidra.program.database.util.QueryRecordIterator
- All Implemented Interfaces:
RecordIterator
Iterator that only returns records from another iterator that match the given query.
-
Constructor Summary
ConstructorDescriptionQueryRecordIterator
(RecordIterator iter, Query query) Constructs a new QueryRecordIterator that filters the given record iterator with the given Query.QueryRecordIterator
(RecordIterator iter, Query query, boolean forward) Constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
delete()
Delete the last Record read via the next or previous methods.boolean
hasNext()
Return true if a Record is available in the forward direction.boolean
Return true if a Record is available in the reverse directionnext()
Return the nexy Record or null if one is not available.previous()
Return the previous Record or null if one is not available.
-
Constructor Details
-
QueryRecordIterator
Constructs a new QueryRecordIterator that filters the given record iterator with the given Query.- Parameters:
iter
- the record iterator to filter.query
- the query used to filter.
-
QueryRecordIterator
Constructor- Parameters:
iter
- record iteratorquery
- query needed to match the recordforward
- true means iterate in the forward direction
-
-
Method Details
-
hasNext
Description copied from interface:RecordIterator
Return true if a Record is available in the forward direction.- Specified by:
hasNext
in interfaceRecordIterator
- Throws:
IOException
- thrown if an IO error occurs- See Also:
-
next
Description copied from interface:RecordIterator
Return the nexy Record or null if one is not available.- Specified by:
next
in interfaceRecordIterator
- Throws:
IOException
- thrown if an IO error occurs- See Also:
-
hasPrevious
Description copied from interface:RecordIterator
Return true if a Record is available in the reverse direction- Specified by:
hasPrevious
in interfaceRecordIterator
- Throws:
IOException
- thrown if an IO error occurs- See Also:
-
previous
Description copied from interface:RecordIterator
Return the previous Record or null if one is not available.- Specified by:
previous
in interfaceRecordIterator
- Throws:
IOException
- thrown if an IO error occurs- See Also:
-
delete
Description copied from interface:RecordIterator
Delete the last Record read via the next or previous methods.- Specified by:
delete
in interfaceRecordIterator
- Returns:
- true if record was successfully deleted.
- Throws:
IOException
- thrown if an IO error occurs.- See Also:
-