4, 6, 7));
// Full index should be built prior to partial
VarPairsIndexFactory.getInstance().buildIndex(cts);
VarPairsIndex index = VarPairsIndexFactory.getInstance().
buildPartialIndex(cts, (ICompactTripletsStructureHolder) cts.get(0), 0, 0);
index.forEachPair(new LongObjectProcedure()
{
public boolean apply(long key, Object value)
{
int varName1_ = (int) (key >> 21);
int varName2_ = (int) (key & 0x1FFFFF);
System.out.println(varName1_+ ", " + varName2_);
LongArrayList tiers = (LongArrayList) value;
for (int i = 0; i < tiers.size(); i++)
{
long formulaAndTierIndex = tiers.get(i);
int formulaIndex = (int)(formulaAndTierIndex >> 32);
int tierIndex = (int)(formulaAndTierIndex & 0x00000000FFFFFFFFL);
ICompactTripletsStructure formula = (ICompactTripletsStructure)cts.get(formulaIndex);
ITier tier = formula.getTier(tierIndex);
System.out.println(tier);
Helper.prettyPrint(formula);
}
return true;
}
});
assertEquals(4, index.pairs().size());
}