scanAll method

Future<List<DecodedTuple>> scanAll()

Implementation

Future<List<DecodedTuple>> scanAll() async {
  final result = <DecodedTuple>[];
  for (final pid in await _allPageIds()) {
    final page = await _getPage(pid);
    for (final t in page.scanTuples()) {
      try {
        final decoded = TupleCodec.decode(schema, t.data);
        result.add(decoded);
      } catch (_) {
        // Skip corrupt tuples
      }
    }
  }
  return result;
}