TpsReaderTable class

One table of a TpsReader: its definition and rows, read on demand.

Implemented types

Properties

definition → TpsTableDefinition
Fields, memos and indexes.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The table name, e.g. DEPT.
final
number → int
Table number used in every record key.
final
rowCount → int
Number of data rows, like Clarion's RECORDS(). Read from the table's metadata record when it has one (a few page reads); otherwise counted by reading every row. A damaged file can keep a stale count; rows().length is always exact.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

byKey(String key, {bool reverse = false}) → Iterable<TpsRow>
Every row in the order of key, or backwards when reverse is set.
override
get(String key, Map<String, Object?> values) → TpsRow?
The first row whose key starts with values, or null. Clarion's GET(file, key).
override
matching(String key, Map<String, Object?> values) → Iterable<TpsRow>
Rows whose key starts with values, in key order.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
range(String key, {Map<String, Object?>? from, Map<String, Object?>? to, bool reverse = false}) → Iterable<TpsRow>
Rows whose key lies between from and to, both included; a missing bound means the start or end of the key. A bound that gives only the leading parts includes every row that starts with them.
override
row(int recordNumber) → TpsRow?
The row with recordNumber, or null.
rows({int fromRecord = 0}) → Iterable<TpsRow>
Data rows in record-number order, starting at fromRecord. Rows are read as the iterable is walked; each walk reads the file again.
seek(String key, Map<String, Object?> values, {bool reverse = false}) → Iterable<TpsRow>
Rows from the position of values on, like SET(key, key) followed by NEXT: the first row is the first whose key is at or after values. With reverse, like PREVIOUS: rows at or before values, backwards.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited