INNER CODE UNIT · C#

RunCountryStatusRepeatedDiskTryGetAsync

ZoneTree/ZoneTree · benchmarks/zonetree-scan-lab/Program.cs:673

  public Task RunCountryStatusRepeatedDiskTryGetAsync(CountryStatusKey[] keys) =>
      throw new NotSupportedException(
          "repeated-disk-try-get is available only for ZoneTree.");

  Task RunCountryStatusTryGetAsync(string name, CountryStatusKey[] keys) =>
      ScanExecution.RunPartitionedAsync(
          name,
          keys.Length,
          config.Parallelism,
          (start, count, checksum) =>
          {
            for (var i = start; i < start + count; i++)
            {
              var value = CountryStatusIndex!.Get(keys[i].Bytes, null, null);
              if (value != null)
                checksum.Add(ParseUserId(value));
            }
          });

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…