com.sleepycat.je.rep.vlsn
Class VLSNIndex.BackwardVLSNScanner

java.lang.Object
  extended by com.sleepycat.je.rep.vlsn.VLSNIndex.BackwardVLSNScanner
Enclosing class:
VLSNIndex

public static class VLSNIndex.BackwardVLSNScanner
extends Object

Assumes that VLSNs are scanned backwards. May be used by syncup to optimally search for matchpoints.


Constructor Summary
VLSNIndex.BackwardVLSNScanner(VLSNIndex vlsnIndex)
           
 
Method Summary
 long getPreciseLsn(VLSN vlsn)
           
 long getStartingLsn(VLSN vlsn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VLSNIndex.BackwardVLSNScanner

public VLSNIndex.BackwardVLSNScanner(VLSNIndex vlsnIndex)
Method Detail

getStartingLsn

public long getStartingLsn(VLSN vlsn)

getPreciseLsn

public long getPreciseLsn(VLSN vlsn)
Parameters:
vlsn - We're requesting a LSN mapping for this vlsn
Returns:
If there is a mapping for this VLSN, return it, else return NULL_LSN. We assume that we checked that this VLSN is in the VLSNIndex's range.
See Also:
getPreciseLsn(com.sleepycat.je.utilint.VLSN)


Copyright (c) 2004-2010 Oracle. All rights reserved.