com.sleepycat.je.rep.vlsn
Class VLSNRange

java.lang.Object
  extended by com.sleepycat.je.rep.vlsn.VLSNRange

public class VLSNRange
extends Object


Nested Class Summary
(package private) static class VLSNRange.VLSNRangeBinding
          Marshals a VLSNRange to a byte buffer to store in the database.
 
Field Summary
(package private) static VLSNRange EMPTY
           
static long RANGE_KEY
           
 
Method Summary
 boolean contains(VLSN vlsn)
           
 VLSN getFirst()
           
 VLSN getLast()
           
 VLSN getLastSync()
           
 VLSN getLastTxnEnd()
           
(package private)  VLSN getUpcomingVLSN()
          Return the VLSN that should come after the lastVLSN.
(package private)  VLSNRange getUpdate(VLSNRange other)
          Incorporate the information in "other" in this range.
(package private)  VLSNRange getUpdateForNewMapping(VLSN newValue, byte entryTypeNum)
          A new VLSN->LSN mapping has been registered in a bucket.
(package private)  boolean isEmpty()
           
(package private)  VLSNRange merge(VLSNRange other)
          The "other" range is going to be appended to this range.
static VLSNRange readFromDatabase(DatabaseEntry data)
           
(package private)  VLSNRange shortenFromEnd(VLSN deleteStart)
           
(package private)  VLSNRange shortenFromHead(VLSN deleteEnd)
           
 String toString()
           
(package private)  boolean verify(boolean verbose)
           
(package private)  boolean verifySubset(boolean verbose, VLSNRange subsetRange)
           
(package private)  VLSN writeToDatabase(EnvironmentImpl envImpl, DatabaseImpl dbImpl, Txn txn)
          When the range is written out by the VLSNTracker, we must always be sure to update the tracker's lastVSLNOnDisk field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RANGE_KEY

public static final long RANGE_KEY
See Also:
Constant Field Values

EMPTY

static final VLSNRange EMPTY
Method Detail

writeToDatabase

VLSN writeToDatabase(EnvironmentImpl envImpl,
                     DatabaseImpl dbImpl,
                     Txn txn)
When the range is written out by the VLSNTracker, we must always be sure to update the tracker's lastVSLNOnDisk field. Return the last VLSN in the range as part of this method, to help ensure that update.

Parameters:
envImpl -
dbImpl -
txn -

readFromDatabase

public static VLSNRange readFromDatabase(DatabaseEntry data)

getFirst

public VLSN getFirst()

getLast

public VLSN getLast()

getLastSync

public VLSN getLastSync()

getLastTxnEnd

public VLSN getLastTxnEnd()

getUpcomingVLSN

VLSN getUpcomingVLSN()
Return the VLSN that should come after the lastVLSN.


contains

public boolean contains(VLSN vlsn)
Returns:
true if this VLSN is within the range described by this class.

getUpdateForNewMapping

VLSNRange getUpdateForNewMapping(VLSN newValue,
                                 byte entryTypeNum)
A new VLSN->LSN mapping has been registered in a bucket. Update the range accordingly.


getUpdate

VLSNRange getUpdate(VLSNRange other)
Incorporate the information in "other" in this range.


merge

VLSNRange merge(VLSNRange other)
The "other" range is going to be appended to this range.


shortenFromEnd

VLSNRange shortenFromEnd(VLSN deleteStart)

shortenFromHead

VLSNRange shortenFromHead(VLSN deleteEnd)

isEmpty

boolean isEmpty()

toString

public String toString()
Overrides:
toString in class Object

verify

boolean verify(boolean verbose)

verifySubset

boolean verifySubset(boolean verbose,
                     VLSNRange subsetRange)
Returns:
true if subsetRange is a subset of this range.


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