private Comparable getIndexedValue(LeftTuple leftTuple) {
   return (Comparable)
       index
           .getDeclaration()
           .getExtractor()
           .getValue(leftTuple.get(index.getDeclaration()).getObject());
 }
 private Comparable getIndexedValue(RightTuple rightTuple) {
   return (Comparable) index.getExtractor().getValue(rightTuple.getFactHandle().getObject());
 }