Package org.apache.cassandra.db.rows
Class RangeTombstoneBoundaryMarker
- java.lang.Object
-
- org.apache.cassandra.db.rows.AbstractRangeTombstoneMarker<ClusteringBoundary<?>>
-
- org.apache.cassandra.db.rows.RangeTombstoneBoundaryMarker
-
- All Implemented Interfaces:
IMeasurableMemory,Clusterable,RangeTombstoneMarker,Unfiltered
public class RangeTombstoneBoundaryMarker extends AbstractRangeTombstoneMarker<ClusteringBoundary<?>>
A range tombstone marker that represents a boundary between 2 range tombstones (i.e. it closes one range and open another).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.db.rows.RangeTombstoneMarker
RangeTombstoneMarker.Merger
-
Nested classes/interfaces inherited from interface org.apache.cassandra.db.rows.Unfiltered
Unfiltered.Kind
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.db.rows.AbstractRangeTombstoneMarker
bound
-
-
Constructor Summary
Constructors Constructor Description RangeTombstoneBoundaryMarker(ClusteringBoundary<?> bound, DeletionTime endDeletion, DeletionTime startDeletion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RangeTombstoneBoundaryMarkerclone(ByteBufferCloner cloner)ClusteringBound<?>closeBound(boolean reversed)DeletionTimecloseDeletionTime(boolean reversed)booleancloseIsInclusive(boolean reversed)RangeTombstoneBoundMarkercreateCorrespondingCloseMarker(boolean reversed)RangeTombstoneBoundMarkercreateCorrespondingOpenMarker(boolean reversed)voiddigest(Digest digest)Digest the atom using the providedDigest.DeletionTimeendDeletionTime()The deletion time for the range tombstone this boundary ends (in clustering order).booleanequals(java.lang.Object other)static <V> RangeTombstoneBoundaryMarkerexclusiveCloseInclusiveOpen(boolean reversed, ClusteringPrefix<V> from, DeletionTime closeDeletion, DeletionTime openDeletion)static <V> RangeTombstoneBoundaryMarkerexclusiveCloseInclusiveOpen(boolean reversed, V[] boundValues, ValueAccessor<V> accessor, DeletionTime closeDeletion, DeletionTime openDeletion)inthashCode()booleanhasInvalidDeletions()Do a quick validation of the deletions of the unfiltered (if any)static <V> RangeTombstoneBoundaryMarkerinclusiveCloseExclusiveOpen(boolean reversed, ClusteringPrefix<V> from, DeletionTime closeDeletion, DeletionTime openDeletion)static <V> RangeTombstoneBoundaryMarkerinclusiveCloseExclusiveOpen(boolean reversed, V[] boundValues, ValueAccessor<V> accessor, DeletionTime closeDeletion, DeletionTime openDeletion)booleanisClose(boolean reversed)booleanisOpen(boolean reversed)static <V1,V2>
RangeTombstoneBoundaryMarkermakeBoundary(boolean reversed, ClusteringBound<V1> close, ClusteringBound<V2> open, DeletionTime closeDeletion, DeletionTime openDeletion)ClusteringBound<?>openBound(boolean reversed)DeletionTimeopenDeletionTime(boolean reversed)booleanopenIsInclusive(boolean reversed)DeletionTimestartDeletionTime()The deletion time for the range tombstone this boundary starts (in clustering order).java.lang.StringtoString(TableMetadata metadata)longunsharedHeapSize()RangeTombstoneBoundaryMarkerwithNewOpeningDeletionTime(boolean reversed, DeletionTime newDeletionTime)-
Methods inherited from class org.apache.cassandra.db.rows.AbstractRangeTombstoneMarker
clustering, isBoundary, kind, toString, toString, validateData
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.db.rows.RangeTombstoneMarker
isEmpty
-
Methods inherited from interface org.apache.cassandra.db.rows.Unfiltered
isRangeTombstoneMarker, isRow
-
-
-
-
Constructor Detail
-
RangeTombstoneBoundaryMarker
public RangeTombstoneBoundaryMarker(ClusteringBoundary<?> bound, DeletionTime endDeletion, DeletionTime startDeletion)
-
-
Method Detail
-
exclusiveCloseInclusiveOpen
public static <V> RangeTombstoneBoundaryMarker exclusiveCloseInclusiveOpen(boolean reversed, V[] boundValues, ValueAccessor<V> accessor, DeletionTime closeDeletion, DeletionTime openDeletion)
-
exclusiveCloseInclusiveOpen
public static <V> RangeTombstoneBoundaryMarker exclusiveCloseInclusiveOpen(boolean reversed, ClusteringPrefix<V> from, DeletionTime closeDeletion, DeletionTime openDeletion)
-
inclusiveCloseExclusiveOpen
public static <V> RangeTombstoneBoundaryMarker inclusiveCloseExclusiveOpen(boolean reversed, V[] boundValues, ValueAccessor<V> accessor, DeletionTime closeDeletion, DeletionTime openDeletion)
-
inclusiveCloseExclusiveOpen
public static <V> RangeTombstoneBoundaryMarker inclusiveCloseExclusiveOpen(boolean reversed, ClusteringPrefix<V> from, DeletionTime closeDeletion, DeletionTime openDeletion)
-
endDeletionTime
public DeletionTime endDeletionTime()
The deletion time for the range tombstone this boundary ends (in clustering order).
-
startDeletionTime
public DeletionTime startDeletionTime()
The deletion time for the range tombstone this boundary starts (in clustering order).
-
closeDeletionTime
public DeletionTime closeDeletionTime(boolean reversed)
-
openDeletionTime
public DeletionTime openDeletionTime(boolean reversed)
-
openIsInclusive
public boolean openIsInclusive(boolean reversed)
-
openBound
public ClusteringBound<?> openBound(boolean reversed)
-
closeBound
public ClusteringBound<?> closeBound(boolean reversed)
-
closeIsInclusive
public boolean closeIsInclusive(boolean reversed)
-
isOpen
public boolean isOpen(boolean reversed)
- Specified by:
isOpenin interfaceRangeTombstoneMarker- Overrides:
isOpenin classAbstractRangeTombstoneMarker<ClusteringBoundary<?>>
-
isClose
public boolean isClose(boolean reversed)
- Specified by:
isClosein interfaceRangeTombstoneMarker- Overrides:
isClosein classAbstractRangeTombstoneMarker<ClusteringBoundary<?>>
-
hasInvalidDeletions
public boolean hasInvalidDeletions()
Description copied from interface:UnfilteredDo a quick validation of the deletions of the unfiltered (if any)- Returns:
- true if any deletion is invalid
-
clone
public RangeTombstoneBoundaryMarker clone(ByteBufferCloner cloner)
-
withNewOpeningDeletionTime
public RangeTombstoneBoundaryMarker withNewOpeningDeletionTime(boolean reversed, DeletionTime newDeletionTime)
-
makeBoundary
public static <V1,V2> RangeTombstoneBoundaryMarker makeBoundary(boolean reversed, ClusteringBound<V1> close, ClusteringBound<V2> open, DeletionTime closeDeletion, DeletionTime openDeletion)
-
createCorrespondingCloseMarker
public RangeTombstoneBoundMarker createCorrespondingCloseMarker(boolean reversed)
-
createCorrespondingOpenMarker
public RangeTombstoneBoundMarker createCorrespondingOpenMarker(boolean reversed)
-
digest
public void digest(Digest digest)
Description copied from interface:UnfilteredDigest the atom using the providedDigest.- Parameters:
digest- the {@see Digest} to use.
-
unsharedHeapSize
public long unsharedHeapSize()
- Returns:
- the amount of on-heap memory retained by the object that might be reclaimed if the object were reclaimed, i.e. it should try to exclude globally cached data where possible, or counting portions of arrays that are referenced by the object but used by other objects only (e.g. slabbed byte-buffers), etc.
-
toString
public java.lang.String toString(TableMetadata metadata)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-