INNER CODE UNIT · C#
destinationIndex
ZoneTree/ZoneTree · benchmarks/zonetree-scan-lab/Program.cs:1156
var destinationIndex = cluster * config.Limit;
for (var offset = 0; offset < config.Limit; offset++)
userIds[destinationIndex + offset] = (startId + offset - 1) % config.Profiles + 1;
}
}
else
{
var random = new Random(config.Seed);
for (var i = 0; i < userIds.Length; i++)
userIds[i] = (int)random.NextInt64(1, config.Profiles + 1L);
}
return new ProfileReadPlan(userIds);
}
static CountryStatusQuery[] CreateCountryStatusQueries(
int count,
ProfileGenerator generator,
Random random)