final ISqlJetBtreeRecord r = d.getRecord();
final ISqlJetVdbeMem f = r.getFields().get(0);
final ISqlJetMemoryPointer v = f.valueText(SqlJetEncoding.UTF8);
final String h = SqlJetUtility.toString(v);
final SqlJetBtreeRecord r1 = new SqlJetBtreeRecord(f);
final SqlJetVdbeMem m = new SqlJetVdbeMem();
m.setStr(SqlJetUtility.wrapPtr(SqlJetUtility.getBytes(h)), SqlJetEncoding.UTF8);
final SqlJetBtreeRecord r2 = new SqlJetBtreeRecord(m);
SqlJetKeyInfo keyInfo = new SqlJetKeyInfo();
keyInfo.setEnc(SqlJetEncoding.UTF8);
keyInfo.setNField(r1.getFieldsCount());
final ISqlJetMemoryPointer raw1 = r1.getRawRecord();