class GhostBucket extends VLSNBucket
dirty, firstVLSN, lastVLSN| Constructor and Description |
|---|
GhostBucket(VLSN ghostVLSN,
long firstPossibleLsn,
long lastPossibleLsn) |
| Modifier and Type | Method and Description |
|---|---|
(package private) long |
getGTELsn(VLSN vlsn)
Return a lsn as a starting point for a backward scan.
|
long |
getLsn(VLSN vlsn)
There is no mapping for this VLSN, so always return NULL_LSN.
|
(package private) long |
getLTEFileNumber()
Return a file number that is less or equal to the first mapped vlsn,
for use in determining the CBVLSN.
|
(package private) long |
getLTELsn(VLSN vlsn)
Return a lsn as a starting point for a forward scan.
|
(package private) int |
getNumOffsets() |
(package private) boolean |
isGhost() |
(package private) static GhostBucket |
makeNewInstance(TupleInput ti)
Ideally, this would be a constructor, but we have to read several
items off the tuple input first before calling super();
|
(package private) boolean |
put(VLSN vlsn,
long lsn)
Record the LSN location for this VLSN.
|
(package private) VLSNBucket |
removeFromHead(EnvironmentImpl envImpl,
VLSN lastDuplicate)
Remove the mappings from this bucket that are for VLSNs <=
lastDuplicate.
|
(package private) void |
removeFromTail(VLSN startOfDelete,
long prevLsn)
Remove the mappings from this bucket that are for VLSNs >=
startOfDelete.
|
java.lang.String |
toString() |
(package private) void |
writeToTupleOutput(TupleOutput to) |
close, dump, empty, fillDataEntry, follows, getFirst, getLast, getLastLsn, owns, precedes, readFromDatabase, writeToDatabase, writeToDatabaseGhostBucket(VLSN ghostVLSN, long firstPossibleLsn, long lastPossibleLsn)
static GhostBucket makeNewInstance(TupleInput ti)
boolean isGhost()
isGhost in class VLSNBucketvoid writeToTupleOutput(TupleOutput to)
writeToTupleOutput in class VLSNBucketlong getGTELsn(VLSN vlsn)
getGTELsn in class VLSNBucketlong getLTELsn(VLSN vlsn)
getLTELsn in class VLSNBucketpublic long getLsn(VLSN vlsn)
getLsn in class VLSNBucketlong getLTEFileNumber()
getLTEFileNumber in class VLSNBucketboolean put(VLSN vlsn, long lsn)
VLSNBucketput in class VLSNBucketVLSNBucket removeFromHead(EnvironmentImpl envImpl, VLSN lastDuplicate)
VLSNBucketremoveFromHead in class VLSNBucketvoid removeFromTail(VLSN startOfDelete, long prevLsn)
VLSNBucketremoveFromTail in class VLSNBucketstartOfDelete - is the VLSN that begins the range to delete,
inclusiveprevLsn - is the lsn of startOfDelete.getPrev(). We'll be using it
to cap off the end of the bucket, by assigning it to the lastLsn field.int getNumOffsets()
getNumOffsets in class VLSNBucketpublic java.lang.String toString()
toString in class VLSNBucketObject.toString()Copyright (c) 2004-2012 Oracle. All rights reserved.