Package ghidra.util.database
Interface DirectedRecordIterator
- All Superinterfaces:
DirectedIterator<DBRecord>
- All Known Implementing Classes:
AbstractDirectedRecordIterator,BackwardRecordIterator,ForwardRecordIterator
An iterator over records of a table
-
Nested Class Summary
Nested classes/interfaces inherited from interface ghidra.util.database.DirectedIterator
DirectedIterator.Direction -
Field Summary
Fields -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic DirectedRecordIteratorgetIndexIterator(Table table, int columnIndex, FieldSpan fieldSpan, DirectedIterator.Direction direction) Get an iterator over the table using a given index, restricted to the given range of values, in the given directionstatic DirectedRecordIteratorgetIterator(Table table, KeySpan keySpan, DirectedIterator.Direction direction) Get an iterator over the table, restricted to the given range of keys, in the given directionMethods inherited from interface ghidra.util.database.DirectedIterator
delete, hasNext, next
-
Field Details
-
EMPTY
-
-
Method Details
-
getIterator
static DirectedRecordIterator getIterator(Table table, KeySpan keySpan, DirectedIterator.Direction direction) throws IOException Get an iterator over the table, restricted to the given range of keys, in the given direction- Parameters:
table- the tablekeySpan- the limited rangedirection- the direction- Returns:
- the iterator
- Throws:
IOException- if the table cannot be read
-
getIndexIterator
static DirectedRecordIterator getIndexIterator(Table table, int columnIndex, FieldSpan fieldSpan, DirectedIterator.Direction direction) throws IOException Get an iterator over the table using a given index, restricted to the given range of values, in the given direction- Parameters:
table- the tablecolumnIndex- the column number of the indexfieldSpan- the limited rangedirection- the direction- Returns:
- the iterator
- Throws:
IOException- if the table cannot be read
-