1 8 9 package com.sleepycat.persist; 10 11 import com.sleepycat.je.DatabaseException; 12 import com.sleepycat.je.LockMode; 13 import com.sleepycat.util.keyrange.RangeCursor; 14 15 23 class SubIndexCursor<V> extends BasicCursor<V> { 24 25 SubIndexCursor(RangeCursor cursor, ValueAdapter<V> adapter) { 26 super(cursor, adapter); 27 } 28 29 public EntityCursor<V> dup() 30 throws DatabaseException { 31 32 return new SubIndexCursor<V>(cursor.dup(true), adapter); 33 } 34 35 public V nextDup(LockMode lockMode) 36 throws DatabaseException { 37 38 checkInitialized(); 39 return null; 40 } 41 42 public V nextNoDup(LockMode lockMode) 43 throws DatabaseException { 44 45 return returnValue(cursor.getNext(key, pkey, data, lockMode)); 46 } 47 48 public V prevDup(LockMode lockMode) 49 throws DatabaseException { 50 51 checkInitialized(); 52 return null; 53 } 54 55 public V prevNoDup(LockMode lockMode) 56 throws DatabaseException { 57 58 return returnValue(cursor.getPrev(key, pkey, data, lockMode)); 59 } 60 } 61 | Popular Tags |