protected IndexQuery getIndexCond() {
final IndexQuery idxCond;
final byte[] query = _query;
final int percentidx = ArrayUtils.indexOf(query, RevPathCoder.PERCENT_CODE, 0);
if(percentidx < 0) {
final Value key = new Value(query);
idxCond = new BasicIndexQuery.IndexConditionEQ(key);
} else {
final byte[] keyStr = ArrayUtils.copyOfRange(query, 0, percentidx);
final byte[] filter = ArrayUtils.copyOfRange(query, percentidx, query.length);
final Value key = new Value(keyStr);
idxCond = new ByteLikeIndexQuery(key, filter, RevPathCoder.PERCENT_CODE);
}
return idxCond;
}