long tmpId = -1000;
for(Object entry : entries.values()) {
DbServiceUtil.sencodeMulti(ArrayBytes.EMPTY_BYTES, entry, buffer, tmpId--, false);
}
TrivialBagIndex puts = new TrivialBagIndex();
long revNum = puts.commitNewRev(buffer);
BagIndexBridge bridge = new BagIndexBridge();
bridge.setTxnMapper(new ProcessTransactionMapper());
bridge.setBagEntry("",new BagEntry(puts, null, revNum));
bridge.getTxnMapper().addRevsForTxn(0, Util.literalMap().p("",revNum));
return bridge.query("", 0, query, options);