flags.add(SqlJetUnpackedRecordFlags.PREFIX_MATCH);
return unpacked.recordCompare(record.remaining(), record);
}
public int compareKeys(Object[] firstKey, Object[] lastKey) throws SqlJetException {
final SqlJetEncoding encoding = btree.getDb().getOptions().getEncoding();
final ISqlJetMemoryPointer firstRec = SqlJetBtreeRecord.getRecord(encoding, firstKey).getRawRecord();
final ISqlJetMemoryPointer lastRec = SqlJetBtreeRecord.getRecord(encoding, lastKey).getRawRecord();
final SqlJetUnpackedRecord unpacked = getKeyInfo().recordUnpack(firstRec.remaining(), firstRec);
unpacked.getFlags().add(SqlJetUnpackedRecordFlags.PREFIX_MATCH);
return unpacked.recordCompare(lastRec.remaining(), lastRec);