/** Creates a cursor for a given view and key range. Used by unit tests. */ DataCursor( DataView view, boolean writeAllowed, Object beginKey, boolean beginInclusive, Object endKey, boolean endInclusive) throws DatabaseException { init( view, writeAllowed, null, view.subRange(view.range, beginKey, beginInclusive, endKey, endInclusive)); }
/** Creates a cursor for a given view and single key range. Used by unit tests. */ DataCursor(DataView view, boolean writeAllowed, Object singleKey) throws DatabaseException { init(view, writeAllowed, null, view.subRange(view.range, singleKey)); }