in harry-core/src/harry/operations/Query.java [202:227]
public boolean match(long cd)
{
// TODO: looks like we don't really need comparator here.
Relation.LongComparator cmp = FORWARD_COMPARATOR;
boolean res = minRelation.match(cmp, cd, cdMin) && maxRelation.match(cmp, cd, cdMax);
if (!logger.isDebugEnabled())
return res;
boolean superRes = super.match(cd);
if (res != superRes)
{
logger.debug("Query did not pass a sanity check.\n{}\n Super call returned: {}, while current call: {}\n" +
"cd = {} {} ({})\n" +
"this.cdMin = {} {} ({})\n" +
"this.cdMax = {} {} ({})\n" +
"minRelation.match(cmp, cd, this.cdMin) = {}\n" +
"maxRelation.match(cmp, cd, this.cdMax) = {}\n",
this,
superRes, res,
cd, Long.toHexString(cd), Arrays.toString(schemaSpec.ckGenerator.slice(cd)),
cdMin, Long.toHexString(cdMin), Arrays.toString(schemaSpec.ckGenerator.slice(cdMin)),
cdMax, Long.toHexString(cdMax), Arrays.toString(schemaSpec.ckGenerator.slice(cdMax)),
minRelation.match(cmp, cd, cdMin),
maxRelation.match(cmp, cd, cdMax));
}
return res;
}