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().lengthis 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 whenreverseis set.override -
get(
String key, Map< String, Object?> values) → TpsRow? -
The first row whose key starts with
values, ornull. Clarion'sGET(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
fromandto, 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, ornull. -
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
valueson, likeSET(key, key)followed byNEXT: the first row is the first whose key is at or aftervalues. Withreverse, likePREVIOUS: rows at or beforevalues, backwards.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited