Name innerProperty,
Name outerProperty) throws IOException {
super(inner);
this.reader = reader;
this.outerLookup = scs.newComparator(reader, outerProperty.toString());
ScoreDocComparator comparator = scs.newComparator(reader, innerProperty.toString());
ScoreNode[] nodes;
// create lookup map
while ((nodes = inner.nextScoreNodes()) != null) {
Integer doc = new Integer(nodes[innerScoreNodeIndex].getDoc(reader));
sDoc.doc = doc.intValue();
Comparable value = comparator.sortValue(sDoc);
if (value != null) {
innerScoreNodes.addScoreNodes(value, nodes);
}
}
}