问题描述
例如: select * from table where A=? and B=? and c<? order by D 问题补充:sky_sz 写道
解决方案
如果要使用DPL, 就比较简单。see:http://www.oracle.com/technetwork/database/berkeleydb/performing.pdf
解决方案二:
public class Test {public static List<String> get(String key) {ArrayList<String> nuclearStorageValue = new ArrayList<String>();DatabaseEntry queryKey = new DatabaseEntry();DatabaseEntry value = new DatabaseEntry();queryKey.setData(key.getBytes());Cursor cursor = null;try {cursor = db.openCursor(null, null);for (OperationStatus status = cursor.getSearchKey(queryKey, value,LockMode.READ_UNCOMMITTED);status == OperationStatus.SUCCESS; status = cursor.getNextDup(queryKey, value, LockMode.RMW)) {nuclearStorageValue.add(value.getData().toString());}} catch (DatabaseException e) {System.out.println(e);} finally {attemptClose(cursor);}return nuclearStorageValue;}}
解决方案三:
嘛意思?没看明白