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, writeToDatabase
GhostBucket(VLSN ghostVLSN, long firstPossibleLsn, long lastPossibleLsn)
static GhostBucket makeNewInstance(TupleInput ti)
boolean isGhost()
isGhost
in class VLSNBucket
void writeToTupleOutput(TupleOutput to)
writeToTupleOutput
in class VLSNBucket
long getGTELsn(VLSN vlsn)
getGTELsn
in class VLSNBucket
long getLTELsn(VLSN vlsn)
getLTELsn
in class VLSNBucket
public long getLsn(VLSN vlsn)
getLsn
in class VLSNBucket
long getLTEFileNumber()
getLTEFileNumber
in class VLSNBucket
boolean put(VLSN vlsn, long lsn)
VLSNBucket
put
in class VLSNBucket
VLSNBucket removeFromHead(EnvironmentImpl envImpl, VLSN lastDuplicate)
VLSNBucket
removeFromHead
in class VLSNBucket
void removeFromTail(VLSN startOfDelete, long prevLsn)
VLSNBucket
removeFromTail
in class VLSNBucket
startOfDelete
- 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 VLSNBucket
public java.lang.String toString()
toString
in class VLSNBucket
Object.toString()
Copyright (c) 2004-2012 Oracle. All rights reserved.