public static class RangeTombstone.Tracker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.Set<RangeTombstone> |
expired |
Constructor and Description |
---|
RangeTombstone.Tracker(java.util.Comparator<java.nio.ByteBuffer> comparator) |
Modifier and Type | Method and Description |
---|---|
boolean |
isDeleted(Column column) |
void |
update(OnDiskAtom atom,
boolean isExpired)
Update this tracker given an
atom . |
long |
writeOpenedMarker(OnDiskAtom firstColumn,
java.io.DataOutput out,
OnDiskAtom.Serializer atomSerializer)
Compute RangeTombstone that are needed at the beginning of an index
block starting with
firstColumn . |
int |
writtenAtom() |
public final java.util.Set<RangeTombstone> expired
public RangeTombstone.Tracker(java.util.Comparator<java.nio.ByteBuffer> comparator)
public long writeOpenedMarker(OnDiskAtom firstColumn, java.io.DataOutput out, OnDiskAtom.Serializer atomSerializer) throws java.io.IOException
firstColumn
.
Returns the total serialized size of said tombstones and write them
to out
it if isn't null.java.io.IOException
public int writtenAtom()
public void update(OnDiskAtom atom, boolean isExpired)
atom
.
If column is a Column, check if any tracked range is useless and
can be removed. If it is a RangeTombstone, add it to this tracker.public boolean isDeleted(Column column)
Copyright © 2015 The Apache Software Foundation