public override void Run()
{
SortedDocValues stringDVDirect;
NumericDocValues docIDToID;
try
{
stringDVDirect = sr.GetSortedDocValues("stringdv");
docIDToID = sr.GetNumericDocValues("id");
Assert.IsNotNull(stringDVDirect);
}
catch (IOException ioe)
{
throw new Exception(ioe.ToString(), ioe);
}
while (Environment.TickCount < endTime)
{
SortedDocValues source;
source = stringDVDirect;
BytesRef scratch = new BytesRef();
for (int iter = 0; iter < 100; iter++)
{
int docID = random.Next(sr.MaxDoc);
source.Get(docID, scratch);
Assert.AreEqual(docValues[(int)docIDToID.Get(docID)], scratch);
}
}
}